1.

AngularJS Expressions 1

Answer»

AngularJS EXPRESSIONS 1
This is the first example of using expressions in AngularJS. We need to USE DOUBLE braces for Regular Expressions

SYNTAX
{{ expression }}

and above syntax will provide "output" data same location where expression is define:-

Now we have example which will let you understand the AngularJS expressions:-


AngularJS Expression 1

AngularJS expression will do the same as we did with ng-bind directive. And i have given the below example which will helps you to get the example of binding without ng-bind



AngularJS Expression 2

In above example i have use the ng-model variable but not used ng-bind that i have done with the help of expression.



Discussion

No Comment Found