بلاگ

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’]”>
<ul>
<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!