Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit dc238ce

Browse files
robbieferreropetebacondarwin
authored andcommitted
docs(Angular.js): clarify ngApp usage
1 parent 0921bd0 commit dc238ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Angular.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -914,9 +914,13 @@ function encodeUriQuery(val, pctEncodeSpaces) {
914914
* @description
915915
*
916916
* Use this directive to auto-bootstrap an application. Only
917-
* one directive can be used per HTML document. The directive
917+
* one ngApp directive can be used per HTML document. The directive
918918
* designates the root of the application and is typically placed
919919
* at the root of the page.
920+
*
921+
* The first ngApp found in the document will be auto-bootstrapped. To use multiple applications in an
922+
* HTML document you must manually bootstrap them using {@link angular.bootstrap}.
923+
* Applications cannot be nested.
920924
*
921925
* In the example below if the `ngApp` directive would not be placed
922926
* on the `html` element then the document would not be compiled

0 commit comments

Comments
 (0)