title: Call controller function from HTML dynamically created
body: <p>I have a controller which have a function called <code>$scope.removePoster</code> and another one inside the same controller who create a table calling <code>$scope.removePoster</code> like this:</p>
  
  <pre><code>for(var i=0; i &lt; 6 &amp;&amp; postersNum &gt;= 0; i++){
    ...
    table += '&lt;td align="center"&gt;';
    table += '&lt;img width="150" height="175" src="../js/librerias/carousel/images/'+$scope.posters[indexPosters]['image']+'"&gt;&lt;br&gt;';
    table += '&lt;button type="button" class="btn btn-danger" ng-click="removePoster('+$scope.posters[indexPosters]['id']+')"&gt;Delete&lt;/button&gt;';
    table += '&lt;/td&gt;';
    ...
  </code></pre>
  
  <p>When I add this table in my HTML the button doesn't call this function.</p>