title: Double loop to get Ng-options
body: <p>I want to get all the tasks name as task id, where array of tasks are stored in array of groups.
  I am trying to get it in ng-options directive of angularJS. Here is <a href="http://jsfiddle.net/753YB/16/" rel="nofollow">http://jsfiddle.net/753YB/16/</a> link for quick edit. 
  thanks in advance! I know in single array it is <code>task.Id as task.Name for task in Tasks</code> but my tasks are nested in groups so I need tasks in all group. </p>
  
  <pre><code>$scope.Groups = [{
          Name: 'a1',
          Id: 1,
         Tasks:[{Name: 'Some Name' Id: 1},{Name: 'Some Name 2' Id: 2}]
      }, {
          Name: 'c2',
          Id: 2,
          Tasks:[{Name: 'Some Name 3' Id: 3},{Name: 'Some Name 4' Id: 4}]
      },
         {
          Name: 'c2',
          Id: 3,
          Tasks:[{Name: 'Some Name 3' Id: 5},{Name: 'Some Name 4' Id: 6}]
      }];
  </code></pre>