mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-17 19:11:08 +00:00
fix(docs): Fix spelling, punctuation and grammatical errors on dev guide bootstrap page.
This commit is contained in:
parent
2473412ba5
commit
c076fe08cf
1 changed files with 6 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ initialization.
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
* Place the `script` tag at the buttom of the page. Placing script tags at the end of the page
|
* Place the `script` tag at the buttom of the page. Placing script tags at the end of the page
|
||||||
impreves app load time becouse the HTML loading is not blocked by loading of the `angular.js`
|
improves app load time becouse the HTML loading is not blocked by loading of the `angular.js`
|
||||||
script. You can get the latest bits from {@link http://code.angularjs.org}. Please don't link
|
script. You can get the latest bits from {@link http://code.angularjs.org}. Please don't link
|
||||||
your production code to this URL, as it will expose a security hole on your site. For
|
your production code to this URL, as it will expose a security hole on your site. For
|
||||||
experimental development linking to our site is fine.
|
experimental development linking to our site is fine.
|
||||||
|
|
@ -38,7 +38,7 @@ initialization.
|
||||||
|
|
||||||
<html ng-app>
|
<html ng-app>
|
||||||
|
|
||||||
* If you chose to use the old style directive syntax `ng:` then include xml-namespace in `html`
|
* If you choose to use the old style directive syntax `ng:` then include xml-namespace in `html`
|
||||||
to make IE happy. (This is here for historical resons, and we no longer recomend use of
|
to make IE happy. (This is here for historical resons, and we no longer recomend use of
|
||||||
`ng:`.)
|
`ng:`.)
|
||||||
|
|
||||||
|
|
@ -48,9 +48,9 @@ initialization.
|
||||||
|
|
||||||
# Automatic Initialization
|
# Automatic Initialization
|
||||||
|
|
||||||
Angular initializes automatically upon `DOMContentLoaded` event, at which point angular looks for
|
Angular initializes automatically upon `DOMContentLoaded` event, at which point Angular looks for
|
||||||
the {@link api/ng.directive:ngApp `ng-app`} directive which
|
the {@link api/ng.directive:ngApp `ng-app`} directive which
|
||||||
designates your application root. If {@link
|
designates your application root. If the {@link
|
||||||
api/ng.directive:ngApp `ng-app`} directive is found then Angular
|
api/ng.directive:ngApp `ng-app`} directive is found then Angular
|
||||||
will:
|
will:
|
||||||
|
|
||||||
|
|
@ -78,7 +78,7 @@ will:
|
||||||
|
|
||||||
If you need to have more control over the initialization process, you can use a manual
|
If you need to have more control over the initialization process, you can use a manual
|
||||||
bootstrapping method instead. Examples of when you'd need to do this include using script loaders
|
bootstrapping method instead. Examples of when you'd need to do this include using script loaders
|
||||||
or the need to perform an operation before the Angular compiles a page.
|
or the need to perform an operation before Angular compiles a page.
|
||||||
|
|
||||||
|
|
||||||
Here is an example of manually initializing Angular. The example is equivalent to using the {@link
|
Here is an example of manually initializing Angular. The example is equivalent to using the {@link
|
||||||
|
|
@ -99,7 +99,7 @@ api/ng.directive:ngApp ng-app} directive.
|
||||||
</html>
|
</html>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
This sequence that your code should follow:
|
This is the sequence that your code should follow:
|
||||||
|
|
||||||
1. After the page and all of the code is loaded, find the root of the HTML template, which is
|
1. After the page and all of the code is loaded, find the root of the HTML template, which is
|
||||||
typically the root of the document.
|
typically the root of the document.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue