title: Setting data-ng-model in angular
body: <p>I want to set an data-ng-model variable from a controller, but i get this error: <code>TypeError: Cannot set property 'name' of undefined</code></p>
  
  <p>here is the html : <code>&lt;input id="1" data-ng-model="name" type="text"&gt;</code><br>
  and the controller : <code>$scope.name="5656";</code></p>
  
  <p>this changes the text of the input, but not the <code>data-ng-model="name"</code> variable (whcich is what i need)</p>
  
  <pre><code>$('#1').val("hello");
  </code></pre>
  
  <p>update- controller defenition:</p>
  
  <pre><code>editApp.controller('EditController', function ($scope,$http, $routeParams, customersService,$location) {
  ...
  });
  </code></pre>