title: angular ui bootstrap - How to access modal scope without creating controller
body: <p>The <a href="https://angular-ui.github.io/bootstrap/#/modal" rel="nofollow noreferrer">docs</a> for the <code>$modal</code> service say</p>
  <blockquote>
  <p>The scope associated with modal's content is augmented with 2 methods:</p>
  <p>-<code>$close(result)</code></p>
  <p>-<code>$dismiss(reason)</code></p>
  <p>Those methods make it easy to close a modal window without a need to create a dedicated controller.</p>
  </blockquote>
  <p>I'm wondering how to access this scope without creating a dedicated controller.</p>