title: Send html content with variables to template from controller AngularJS
body: <p>After being searching for this issue for a long time, I decided to do my first question in StackOverflow. I hope anyone can help me.</p>
  
  <p>I'm doing a ui.bootstrap.carousel with different slides. The initial structure is the following :</p>
  
  <pre><code>    &lt;carousel interval="carInterval" no-pause="true"&gt;
        &lt;slide&gt;
          some html content, {{ modules }}
        &lt;/slide&gt;
        &lt;slide&gt;
          totally different content, {{ more variables }}
        &lt;/slide&gt;
      &lt;/carousel&gt;
  </code></pre>
  
  <p>That worked really well at the start,  even without using ng-repeat and any active statement. The problem started when I wanted to set a custom goToSlide() buttons. Looking around I just found that I can do it only using the ng-repeat syntax (the normal and given by bootstrap). When I tried to do it in this way, I have to declare all the content of the slides in the javascript file.</p>
  
  <pre><code>    angular.module('anyApp')
        .controller('MainCtrl', function ($scope) {
          $scope.anyModule="Anything"
          $scope.slider=[]
          $scope.slider.push({ content: " \
              &lt;h1&gt; html content {{ anyModule }} &lt;/h1&gt; \
              "});
        });
  </code></pre>
  
  <p>Then, in the html:</p>
  
  <pre><code>    &lt;carousel interval="myInterval" no-wrap="noWrapSlides"&gt;
         &lt;slide ng-repeat="slide in slides" active="slide.active"&gt;
           &lt;p ng-bind-html="slide.content"&gt; &lt;/p&gt;
         &lt;/slide&gt;
      &lt;/carousel&gt;
  </code></pre>
  
  <p>The html content appears well but the variables don't appear. I tried also this:</p>
  
  <pre><code>$scope.slider.push({ content: " \
      &lt;h1&gt; html content &lt;p ng-bind-template='{{ anyModule }} '&gt;&lt;/p&gt;&lt;/h1&gt; "});
  </code></pre>
  
  <p>If you know any possible solution for this problem or maybe just set and an active slider that is not in ng-repeat syntax, I would appreciate it so much. </p>
  
  <p>Thanks for your attention</p>