Skip to content

Commit 6c3a051

Browse files
specialorangepetebacondarwin
authored andcommitted
docs(error/$injector/unpr): clarify which code is being referred to in the text
Closes angular#7020
1 parent 510c328 commit 6c3a051

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/content/error/$injector/unpr.ngdoc

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ angular.module('myApp', [])
1414
}]);
1515
```
1616

17-
This code will fail with `$injector:unpr` if `myService` is not defined. Making
18-
sure each dependency is defined will fix the problem.
17+
The above code will fail with `$injector:unpr` if `myService` is not defined.
18+
19+
Making sure each dependency is defined will fix the problem, as noted below.
1920

2021
```
2122
angular.module('myApp', [])
2223
.service('myService', function () { /* ... */ })
2324
.controller('MyController', ['myService', function (myService) {
2425
// Do something with myService
2526
}]);
26-
```
27+
```

0 commit comments

Comments
 (0)