mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-28 21:05:43 +08:00
docs(tutorial/step_05): improve explanation of _-prefix
This commit is contained in:
@@ -179,7 +179,7 @@ describe('PhoneCat controllers', function() {
|
|||||||
|
|
||||||
// The injector ignores leading and trailing underscores here (i.e. _$httpBackend_).
|
// 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
|
// 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) {
|
beforeEach(inject(function(_$httpBackend_, $rootScope, $controller) {
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
||||||
$httpBackend.expectGET('phones/phones.json').
|
$httpBackend.expectGET('phones/phones.json').
|
||||||
|
|||||||
Reference in New Issue
Block a user