knowhow-server
Version:
A personal workflow engine that can manage and use any network connected host
24 lines (23 loc) • 1.34 kB
HTML
<a href="http://github.com/angular/angular.js/edit/master/docs/content/error/injector/unpr.ngdoc" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">Unknown Provider</code>
<div><span class="hint">error in component <code ng:non-bindable="">$injector</code>
</span>
</div>
</h1>
<div><pre class="minerr-errmsg" error-display="Unknown provider: {0}">Unknown provider: {0}</pre>
<h2 id="description">Description</h2>
<div class="description"><div class="-injector-page -injector-unpr-page"><p>This error results from the <code>$injector</code> being unable to resolve a required
dependency. To fix this, make sure the dependency is defined and spelled
correctly. For example:</p>
<pre><code>angular.module('myApp', [])
.controller('myCtrl', ['myService', function (myService) {
// Do something with myService
}]);</code></pre>
<p>This code will fail with <code>$injector:unpr</code> if <code>myService</code> is not defined. Making
sure each dependency is defined will fix the problem.</p>
<pre><code>angular.module('myApp', [])
.service('myService', function () { /* ... */ })
.controller('myCtrl', ['myService', function (myService) {
// Do something with myService
}]);</code></pre>
</div></div>
</div>