Wednesday, July 19, 2017

What is ng-bind directive?

The ng-bind directive binds the model property. The ng-bind attribute tells AngularJS to replace text content of the specified HTML element with the value of given expression, and update the text content when the value of that expression changes.   
  

Example:





Output :


In above example, ng-bind directive bind the value of ng-model property “name” to the <span>.The value of “name” property will enter in textbox.

No comments:

Post a Comment