mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-23 21:35:47 +00:00
docs(Angular.js): clarify ngApp usage
This commit is contained in:
parent
e0ca5fdd51
commit
fdb66aa237
1 changed files with 5 additions and 1 deletions
|
|
@ -888,9 +888,13 @@ function encodeUriQuery(val, pctEncodeSpaces) {
|
||||||
* @description
|
* @description
|
||||||
*
|
*
|
||||||
* Use this directive to auto-bootstrap an application. Only
|
* Use this directive to auto-bootstrap an application. Only
|
||||||
* one directive can be used per HTML document. The directive
|
* one ngApp directive can be used per HTML document. The directive
|
||||||
* designates the root of the application and is typically placed
|
* designates the root of the application and is typically placed
|
||||||
* at the root of the page.
|
* at the root of the page.
|
||||||
|
*
|
||||||
|
* The first ngApp found in the document will be auto-bootstrapped. To use multiple applications in an
|
||||||
|
* HTML document you must manually bootstrap them using {@link angular.bootstrap}.
|
||||||
|
* Applications cannot be nested.
|
||||||
*
|
*
|
||||||
* In the example below if the `ngApp` directive would not be placed
|
* In the example below if the `ngApp` directive would not be placed
|
||||||
* on the `html` element then the document would not be compiled
|
* on the `html` element then the document would not be compiled
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue