Expressions in Angularjs
Advertisements
Expressions
AngularJS Expressions used to binds application data to HTML. AngularJS expressions are written inside double curly braces such as : {{ expression }}. Angularjs Expressions behave same like to ng-bind directives. AngularJS expressions are pure JavaScript expressions and output of the data display where they are used.
Sample Example of AngularJS Expressions
Result
Calculator
First NumberSecond Number
Sum: {{num1 + num2}}
Sub: {{num1 - num2}}
Mul: {{num1 * num2}}
Div: {{num1 / num2}}