<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<div>
Name : <input type="text" />
<h1>Hello {{name}}</h1>
</div> |
Some quick notes
- must be within ng-app
- can specify default value with ng-init
- ng-model to define value to be displayed later in place holder
- use double curly braces as place holder to display value hold by ng-model