12 октомври 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}}.

Например :

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

Изход: - 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.


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

Angular JS Training

In Just 4 Days
Регистрирайте се сега

GTranslate Your license is inactive or expired, please subscribe again!