diff options
| author | Peter Bacon Darwin | 2014-02-16 22:02:31 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 22:02:41 +0000 |
| commit | 33e1bdc543bcb7875dcc004d487333393670ed2d (patch) | |
| tree | 7ff1f564ab486f049b7e9e5ad946a6a88bb651b6 /docs/content/error/injector/cdep.ngdoc | |
| parent | 49f90e559ed412402ad7444bc2db2bc1c182ddf5 (diff) | |
| download | angular.js-33e1bdc543bcb7875dcc004d487333393670ed2d.tar.bz2 | |
chore(errors): rename folders to match namespaces
Diffstat (limited to 'docs/content/error/injector/cdep.ngdoc')
| -rw-r--r-- | docs/content/error/injector/cdep.ngdoc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/docs/content/error/injector/cdep.ngdoc b/docs/content/error/injector/cdep.ngdoc deleted file mode 100644 index 0e6526b8..00000000 --- a/docs/content/error/injector/cdep.ngdoc +++ /dev/null @@ -1,26 +0,0 @@ -@ngdoc error -@name $injector:cdep -@fullName Circular Dependency -@description - -This error occurs when the {@link angular.injector $injector} tries to get -a service that depends on itself, either directly or indirectly. To fix this, -construct your dependency chain such that there are no circular dependencies. - -For example: - -``` -angular.module('myApp', []) - .factory('myService', function (myService) { - // ... - }) - .controller('MyCtrl', function ($scope, myService) { - // ... - }); -``` - -When an instance of `MyCtrl` is created, the service `myService` will be created -by the `$injector`. `myService` depends on itself, which causes the `$injector` -to detect a circular dependency and throw the error. - -For more information, see the {@link guide/di Dependency Injection Guide}.
\ No newline at end of file |
