docs(tutorial/step_05): improve explanation of _-prefix

This commit is contained in:
dumpweed
2014-05-27 13:06:12 -07:00
committed by Brian Ford
parent dd7b508326
commit 10406de450

View File

@@ -179,7 +179,7 @@ describe('PhoneCat controllers', function() {
// The injector ignores leading and trailing underscores here (i.e. _$httpBackend_).
// This allows us to inject a service but then attach it to a variable
// with the same name as the service.
// with the same name as the service in order to avoid a name conflict.
beforeEach(inject(function(_$httpBackend_, $rootScope, $controller) {
$httpBackend = _$httpBackend_;
$httpBackend.expectGET('phones/phones.json').