Sunday 1 January 2017

AngularJS Expressions

AngularJS expressions are written inside double braces: {{ expression }}. AngularJS will "output" data exactly where the expression is written:

Example:

<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>

<div ng-app="">
  <p>My first expression: {{ 5 + 5 }}</p>
</div>

</body>
</html>

No comments:

Post a Comment