mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
docs(concepts): fix typos in explanation
Code uses module names with '2' as suffix while the explanation used the module names without the suffix. The diagram is correct but also does not suffix the module names. Closes #5567
This commit is contained in:
parent
e591ddcb30
commit
6a9ccacd62
1 changed files with 2 additions and 2 deletions
|
|
@ -272,8 +272,8 @@ including the configuration of all modules that this module depends on.
|
|||
In the example above:
|
||||
The template contains the directive `ng-app="invoice2"`. This tells Angular
|
||||
to use the `invoice` module as the main module for the application.
|
||||
The code snippet `angular.module('invoice', ['finance'])` specifies that the `invoice` module depends on the
|
||||
`finance` module. By this, Angular uses the `InvoiceController` as well as the `currencyConverter` service.
|
||||
The code snippet `angular.module('invoice2', ['finance2'])` specifies that the `invoice2` module depends on the
|
||||
`finance2` module. By this, Angular uses the `InvoiceController` as well as the `currencyConverter` service.
|
||||
|
||||
Now that Angular knows of all the parts of the application, it needs to create them.
|
||||
In the previous section we saw that controllers are created using a factory function.
|
||||
|
|
|
|||
Loading…
Reference in a new issue