Skip to content

Commit 40c36ee

Browse files
docs(tutorial): add comment about injection annotation
Closes: angular#1163
1 parent 02ad012 commit 40c36ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/content/tutorial/step_05.ngdoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ describe('PhoneCat controllers', function() {
138138
describe('PhoneListCtrl', function(){
139139
var scope, ctrl, $httpBackend;
140140

141+
// The injector ignores leading and trailing underscores here (i.e. _$httpBackend_).
142+
// This allows us to inject a service but then attach it to a variable
143+
// with the same name as the service.
141144
beforeEach(inject(function(_$httpBackend_, $rootScope, $controller) {
142145
$httpBackend = _$httpBackend_;
143146
$httpBackend.expectGET('phones/phones.json').

0 commit comments

Comments
 (0)