mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
docs(tutorial): fix typo in module name
Fixed a typo in step 2 Closes #7138
This commit is contained in:
committed by
Caitlin Potter
parent
1192531e9b
commit
d5a2069cd5
@@ -148,7 +148,7 @@ tests in Angular so that developers are encouraged to write them.
|
||||
### Testing non-Global Controllers
|
||||
|
||||
In practice, you will not want to have your controller functions in the global namespace. Instead,
|
||||
you can see that we have registered it via an anonymous constructor function on the `phoneCatApp`
|
||||
you can see that we have registered it via an anonymous constructor function on the `phonecatApp`
|
||||
module.
|
||||
|
||||
In this case Angular provides a service, `$controller`, which will retrieve your controller by name.
|
||||
|
||||
Reference in New Issue
Block a user