Articles → ANGULAR.JS → Expressions in angular.js

Expressions in angular.js







{{expression}}



Binding numbers




<div ng-app>
	<p>Binding numbers {{5+11}}</p>
</div>




Picture showing the output of binding numbers using expression in angular.js

Click to Enlarge


Binding strings




<div ng-app>
	<p>Binding strings {{"My Name is Gyan"}}</p>
</div>




Picture showing the output of binding string using expression in angular.js

Click to Enlarge



<div ng-app>
	<input type="text" ng-model="name" />
	<p> {{name}}</p>
</div>


Picture showing the output of binding value to HTML control using expression in angular.js

Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, May 27, 2015

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250