title: Angular js init ng-model from default values
body: <p>Say you have a form that has values loaded from database.  How do you initialize ng-model?</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;input name="card[description]" ng-model="card.description" value="Visa-4242"&gt;
  </code></pre>
  
  <p>In my controller, $scope.card is undefined initially.  Is there a way besides doing something like this?</p>
  
  <pre><code>$scope.card = {
    description: $('myinput').val()
  }
  </code></pre>