12 Oct 2018

AngularJS  Expression

Angular’s expression is basically used to bind data of application to Hyper Text Markup language. It is shown by double curly braces {{expression}}.

For Example :

<div ng-app=””>
<p> AngularJS Expression: {{ 1 + 1 }}</p>


Output: – 2

The working of expression is same as ng-bind directive of angular.

Next Example: – ng-repeat directive of angular is basically used for the repetition of element of Hyper Text Markup Language.


For Example: 

<div ng-app=”” ng-init=”colors=[‘red’,’green’,’blue’]”>
<li ng-repeat=”color in colors”>
{{ color }}

Angular JS Training

In Just 4 Days
Enroll Now