WHAT IS DIFFERENCE BETWEEN NG-MODEL AND NG-BIND IN ANGULARJS?

Pawan Shukla

Total Post:7

Points:35
Posted by  Pawan Shukla
 1982  View(s)
Ratings:
Rate this:
  1. Pawan Shukla

    Post:7

    Points:35
    What is difference between ng-model and ng-bind in AngularJS?

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!