title: how to inject $scope object to the dialog template?
body: <p>I have this <a href="http://plnkr.co/edit/Qxsq3LAnC3SWo6AsMqBM?p=preview" rel="noreferrer">plunker</a> with a dialog example that uses the resolve attribute of the option object, based on this <a href="https://github.com/angular-ui/bootstrap/blob/master/src/dialog/README.md#dialogtemplateurl-controller" rel="noreferrer">example</a>.<br>
  Basically what I want to do is to pass the title variable to be used in the dialog template:</p>
  
  <pre><code>var title         = "azerty";
  </code></pre>
  
  <p>Using the resolve attribute of the dialog options object:</p>
  
  <pre><code>resolve:       {title: angular.copy(title)}
  </code></pre>
  
  <p>And then inject it to the dialog controller and assign it to a $scope variable:</p>
  
  <pre><code>controllers.DialogController = function($scope, dialog, title) {
      $scope.title = title;
  </code></pre>
  
  <p>But I get this Error:  </p>
  
  <blockquote>
    <p>Error: Unknown provider: azertyProvider &lt;- azerty</p>
  </blockquote>