How can we write AngularJS Expressions for sum of two numbers ?

AngularJS expressions are written inside double braces: {{ expression }}.

Expressions are used to bind application data to html. Expressions behaves in same way as ng-bind directives. AngularJS application expressions are pure javascript expressions and outputs the data where they are used. Here is the example of sum of two numbers,

AngularJS Expressions

<!DOCTYPE html>
<html>
<script src=js/angular.js”></script>
<body>

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

</body>
</html>

Result : My sample expression: 10