AngularJS expressions are written inside double braces: {{ expression }}.
AngularJS expressions bind AngularJS data to HTML the same way as the ng-bind directive.
A Pen by Matt Rependa on CodePen.
AngularJS expressions are written inside double braces: {{ expression }}.
AngularJS expressions bind AngularJS data to HTML the same way as the ng-bind directive.
A Pen by Matt Rependa on CodePen.
| <div ng-app=""> | |
| <p>My first expression: {{ 5 + 5 }}</p> | |
| <hr/> | |
| <p>Name: <input type="text" ng-model="name" placeholder="name"></p> | |
| <p>{{name}}</p> | |
| </div> |
| <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js"></script> |