title: Problems with select AngularJs
body: <p>I have a few problems.</p>
  
  <p>There are 2 objects in my scope:
  1)</p>
  
  <pre><code>tasks:
      12:
          id: 12
          user_id: 1
  </code></pre>
  
  <p>2)</p>
  
  <pre><code>users:
      1:
          id: 1
          username:  sergey
  </code></pre>
  
  <p>I'm trying to render select with default value (in this example it must be sergey):</p>
  
  <pre><code>&lt;select class="form-control"
      data-ng-model="tasks[task.id].user_id"
      data-ng-change="setWorker(task.id)"
  &gt;
      &lt;option data-ng-repeat="user in users" data-ng-value="user.id" data-ng-selected="{[{user.id == task.user_id}]}"&gt;{[{user.username}]}&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>But it finished with 2 errors (my problems):
  1) In my select default value is empty option
  2) In my select there is an additional option o_O like:</p>
  
  <pre><code>&lt;option value="? number:4 ?"&gt;&lt;/option&gt;
  </code></pre>
  
  <p>First i thought that happened, because server response was containing promise. I resolved this with toJSON all my data, for example:</p>
  
  <pre><code>$scope.users = data.toJSON();
  </code></pre>
  
  <p>Also i have a third problem:
  After updating my data and successful query to my server, for example trying to change user_id in task, i want to update my scope and i do it like:</p>
  
  <pre><code>$scope.tasks[taksId].user_id = userId;
  </code></pre>
  
  <p>And after that i want to execute my own function test(), and i'm trying to do this through watcher:</p>
  
  <pre><code>$scope.$watch('tasks', function () {
      $scope.test();
   })
  </code></pre>
  
  <p>But nothing happened. Have you any idea? =\</p>