Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1866968

Browse files
docs(tutorial): add comment about injection annotation
Closes: #1163
1 parent 5fbf98e commit 1866968

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/content/tutorial/step_05.ngdoc

+3
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)