Home > DeveloperSection > Interviews > What is difference between ng-model and ng-bind in AngularJS?

Posted on    December-28-2015 12:38 AM

 Angular JS JQuery  Angular JS 
 1 Answer(s)
  482  View(s)
Rate this:

Pawan Shukla

Total Post:7

Posted on    December-28-2015 1:38 AM

ng-bind has one-way data binding.
<input type="number" ng-bind="Num1" />
ng-model is intended to be put inside of form elements and has two-way data binding .
<input type="number" ng-model="Num1" />

Modified On Dec-28-2015 12:39:15 AM

Don't want to miss updates? Please click the below button!

Follow MindStick