title: Dynamic ng-init variable - Angularjs
body: <p>.coffee</p>
  
  <pre><code>@FooCtrl = -&gt;
    $scope.products = Product.query()
  </code></pre>
  
  <p>.html  </p>
  
  <pre><code>&lt;div ng-repeat='product in products'&gt;
    &lt;div ng-init='images_{{product.id}} = product.images' &gt;
      &lt;div class='slideshow' ng-repeat='pic in images_{{product.id}}'&gt;
         &lt;img ng-src='{{pic.url}}' /&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I wanna do like this.But <code>ng-init='images_{{product.id}}'</code> is throwing some exception.Any remedy or alternate solution for this?</p>