mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs(guide/concepts): fix incorrect module name in example
Closes #5116
This commit is contained in:
parent
3abfb4ef51
commit
68dd621082
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ When Angular starts, it will use the configuration of the module with the name d
|
|||
including the configuration of all modules that this module depends on.
|
||||
|
||||
In the example above:
|
||||
The template contains the directive `ng-app="invoice"`. This tells Angular
|
||||
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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue