title: AngularJs Error: [ngModel:nonassign]
body: <p>I have started to learn AngularJS and this is what amazes me, at the beginning even a four lines of code does not work properly and I have no clue</p>
  
  <pre><code>&lt;script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"&gt;&lt;/script&gt;
  &lt;div data-ng-app=""&gt;
      &lt;input type="text" ng-model="name='Rocky'"&gt;
  
  Your name is {{name}}
  &lt;/div&gt;
  </code></pre>
  
  <p>On typing something in the textbox, my expression does not change.</p>
  
  <p>It shows the below error in the console.</p>
  
  <pre><code> TypeError: r is not a function
  </code></pre>