aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/tutorial
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-05-09 13:56:36 +0100
committerPete Bacon Darwin2013-05-09 13:58:02 +0100
commit186696831069baf15d1ae7029516309d34082bf6 (patch)
tree70be4e6304d7e62e15171901b2b07cac0d1f057a /docs/content/tutorial
parent5fbf98ec2340882824efdfa345d05ced99ea6989 (diff)
downloadangular.js-186696831069baf15d1ae7029516309d34082bf6.tar.bz2
docs(tutorial): add comment about injection annotation
Closes: #1163
Diffstat (limited to 'docs/content/tutorial')
-rw-r--r--docs/content/tutorial/step_05.ngdoc3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/content/tutorial/step_05.ngdoc b/docs/content/tutorial/step_05.ngdoc
index f17174d7..5402cd87 100644
--- a/docs/content/tutorial/step_05.ngdoc
+++ b/docs/content/tutorial/step_05.ngdoc
@@ -138,6 +138,9 @@ describe('PhoneCat controllers', function() {
describe('PhoneListCtrl', function(){
var scope, ctrl, $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
+ // with the same name as the service.
beforeEach(inject(function(_$httpBackend_, $rootScope, $controller) {
$httpBackend = _$httpBackend_;
$httpBackend.expectGET('phones/phones.json').