title: Angular UI: Unknown provider: dialogProvider
body: <p>I am trying to replicate the following Angular UI example of a simple dialog with a close-button. <a href="https://github.com/angular-ui/bootstrap/blob/master/src/dialog/README.md">https://github.com/angular-ui/bootstrap/blob/master/src/dialog/README.md</a>.
  However, I cannot get the <code>dialog</code> parameter to be injected properly into my dialog controller. </p>
  
  <p>The controllers looks like below (using CoffeScript)</p>
  
  <pre><code>angular.module('myApp', ['ui.bootstrap'])
  
  angular.module('myApp').controller 'MyController', ($dialog, $scope) -&gt;
    $dialog.dialog().open('dialogTemplate', 'DialogController')
  
  angular.module('myApp').controller 'DialogController', ['$scope', 'dialog', ($scope, dialog) -&gt;
      $scope.close = -&gt; dialog.close()
  ]
  </code></pre>
  
  <p>See the Plunker for a live version:
  <a href="http://plnkr.co/edit/ejKh7w8Sk9H7Nz3rXhdc?p=preview">http://plnkr.co/edit/ejKh7w8Sk9H7Nz3rXhdc?p=preview</a></p>
  
  <p>Angular gives me the following error:</p>
  
  <pre><code>Unknown provider: dialogProvider &lt;- dialog
  </code></pre>
  
  <p>Any ideas on how the <code>dialog</code>-parameter could be injected into <code>DialogController</code>, as is seen in the docs example referred to above? I suspect this could have something to do with CoffeeScript since I am fairly new to this language, but it seems quite right when I look at the compiled output.</p>