title: Error: [ngModel:numfmt] Expected 'object' to be a number in selecting an object from an object list when using ng-options in angularjs
body: <p>I have to generate select options dynamically from the database.</p>
  
  <p>I used, Restangular to generate a projectList, which is a list of all project records from DB..</p>
  
  <pre><code>&lt;select 
       ng-model   ="projectLog.project"
       ng-options ="project.name for project in projectLog.allprojectList"&gt; 
  &lt;/select&gt;
  </code></pre>
  
  <p>It did shown, all the projects name, for me to select. But when i selected any project, then this error occurs,</p>
  
  <pre><code>Error: [ngModel:numfmt] Expected`{"id":1,"name":"SandS","route":"iso_projects","reqParams":null,"restangularized":true,"fromServer":true,"parentResource":null,"restangularCollection":false}` to be a number
  </code></pre>
  
  <p>I use ui-router, Restangular and  select2.</p>