Angular expressionsare unit of code which resolves to value. This code is written inside curly braces “{“.
Below are some examples of angular expressions:-
The below expression adds two constant values.
Below are some examples of angular expressions:-
The below expression adds two constant values.
{{1+1}}
The below expression multiplies quantity and cost to get the total value.The value total cost is {{ quantity * cost }}
The below expression displays a controller scoped variable.<div ng-controller="CustomerVM"> The value of Customer code is {{CustomerCode}} </div>
The value of Customer code is {{CustomerCode}}
No comments:
Post a Comment