title: Angular modal: dynamically change modal content
body: <p>I tried my modal content change if I add type parameter to button click event.</p>
  
  <pre><code>    &lt;button type="button" class="btn btn-default" ng-click="open('lg', 'type1')"&gt;Large modal&lt;/button&gt;
      &lt;button type="button" class="btn btn-default" ng-click="open('sm', 'type2')"&gt;Small modal&lt;/button&gt;
  </code></pre>
  
  <p>So, if I chose type1 modal or type2 modal, content doesn't change accordingly, modal content change only to type2.
  I do it such way in my script:</p>
  
  <pre><code>  var titleType1 = "Type 1 Title";
    var titleType2 = "Type 2 Title";
    var contentType1 = "Type 1 Content";
    var contentType2 = "Type 2 Content";
  
    if (type = 'type1') {  
    $scope.modalTitle = titleType1;
    $scope.modalContent = contentType1;
    }
    if (type = 'type2') {
      $scope.modalTitle = titleType2;
      $scope.modalContent = contentType2;
    }
  </code></pre>
  
  <p><a href="http://plnkr.co/edit/9VWvsPw4PzflKZDII5H0?p=preview" rel="nofollow">http://plnkr.co/edit/9VWvsPw4PzflKZDII5H0?p=preview</a></p>
  
  <p>Any idea how it can be fixed? :)</p>