In AngularJS we can create expressions in double braces: {{expression}}

In AngularJS expression values are binded to HTML elements in the same way as ng-bind attribute.

AngularJS Expression example 1:

The following sample displays 30 in the p tag.
<html>

<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
</head>

<body>

<div ng-app="">
  <p> Multiplication of 5 and 6 is: {{ 5 * 6 }}</p>
</div>

</body>
</html>

AngularJS Expression example 2:

The following sample displays multiplication result of first value and second value given into the text box.
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
</head>

<body>

<div ng-app="">
First value :<input type="text" ng-model="num1">
Second value :<input type="text" ng-model="num2">
<p>Multiplication of Num1 and Num2 is: {{num1 * num2}}</p>
</div>

</body>
</html>

How to execute angularJS expressions example code?

For executing the angularJS expressions example , copy the code into a text file and save the file with .html and open the html file.