title: Using ng-repeat to generate select options (with Demo)
body: <h3>controller:</h3>
  <pre><code>$scope.send_index = function(event, val){ 
      console.log(val);
      $scope.variable = 'vm.areas['+val+'].name';
      console.log( $scope.variable ); 
  };
  </code></pre>
  <p>and this is in the view:</p>
  <pre><code>&lt;select ng-model=&quot;vm.areas&quot;&gt;
      &lt;option ng-repeat=&quot;area in vm.areas&quot;  ng-value=&quot;area&quot; id=&quot;{{area}}&quot; ng-click=&quot;send_index($event, $index)&quot;&gt;{{area.name}}
  &lt;/select&gt;
  &lt;input value=&quot;{{variable}}&quot;&gt;
  </code></pre>
  <p>where &quot;vm&quot; is my model.</p>
  <hr />
  <h3>Expression inside of an expression (Angular)</h3>
  <p>my problem is that i need to have an {{array[]}}, with the index as another expression,</p>
  <blockquote>
  <p>e.g: {{Array[{{val}}]}}.</p>
  </blockquote>
  <p>Already tryed this:</p>
  <pre><code> $scope.variable = ''+'vm.areas['+val+'].name'+'';
  </code></pre>
  <p>The problem is in the view, &quot;variable&quot; is shown like an string</p>
  <blockquote>
  <p>(vm.areas[0].name)</p>
  </blockquote>
  <p>and it donst get the valor of that query.</p>