title: how to open modal from angular controller
body: <p>I have an angular controller and want to open a modal in my view. </p>
  
  <p><strong>My HTML</strong></p>
  
  
  
  <pre><code>&lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
  
    &lt;div class="modal-dialog"&gt;
  
      &lt;div class="modal-content"&gt;
  
        &lt;div class="modal-header"&gt;
  
          &lt;button type="button" class="close" data-dismiss="modal"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;span class="sr-only"&gt;Close&lt;/span&gt;&lt;/button&gt;
  
          &lt;h4 class="modal-title" id="myModalLabel"&gt;Modal title&lt;/h4&gt;
  
        &lt;/div&gt;
  
        &lt;div class="modal-body"&gt;
  
          ...
  
        &lt;/div&gt;
  
        &lt;div class="modal-footer"&gt;
  
          &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
  
          &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
  
        &lt;/div&gt;
  
      &lt;/div&gt;
  
    &lt;/div&gt;
  
  &lt;/div&gt;
  
  
  Settings Controller
  
  function SettingsController($scope,WalletManager,Storage){
  
  
      $scope.pageClass = 'page-settings';
  
  
      ];
  
  
  
   $scope.myModal = function () {
  
          var modalInstance = $myModal.open({
  
  
          });
  </code></pre>
  
  <p>How can I open from controller ?</p>