diff options
| author | Misko Hevery | 2012-01-06 18:10:47 -0800 |
|---|---|---|
| committer | Misko Hevery | 2012-01-10 22:27:00 -0800 |
| commit | 5143e7bf065a3cbdf8400cf095b653d51bc83b8f (patch) | |
| tree | 980149c365d4cb5586d27975d26366a25ff7be6a /docs/content/tutorial/step_00.ngdoc | |
| parent | afd25446d23f24872eb20ac79c8fbd2cff203ef0 (diff) | |
| download | angular.js-5143e7bf065a3cbdf8400cf095b653d51bc83b8f.tar.bz2 | |
feat(module): new module loader
Diffstat (limited to 'docs/content/tutorial/step_00.ngdoc')
| -rw-r--r-- | docs/content/tutorial/step_00.ngdoc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/content/tutorial/step_00.ngdoc b/docs/content/tutorial/step_00.ngdoc index b1bdf628..b7f469ff 100644 --- a/docs/content/tutorial/step_00.ngdoc +++ b/docs/content/tutorial/step_00.ngdoc @@ -149,7 +149,7 @@ below. The code contains some key Angular elements that we will need going forwa __`app/index.html`:__ <pre> <!doctype html> -<html xmlns:ng="http://angularjs.org/"> +<html xmlns:ng="http://angularjs.org/" ng:app> <head> <meta charset="utf-8"> <title>my angular app</title> @@ -159,7 +159,7 @@ __`app/index.html`:__ Nothing here yet! - <script src="lib/angular/angular.js" ng:autobind></script> + <script src="lib/angular/angular.js"></script> </body> </html> </pre> @@ -170,7 +170,7 @@ __`app/index.html`:__ * xmlns declaration - <html xmlns:ng="http://angularjs.org"> + <html xmlns:ng="http://angularjs.org" ng:app> This `xmlns` declaration for the `ng` namespace must be specified in all Angular applications in order to make Angular work with XHTML and IE versions older than 9 (regardless of whether you are @@ -178,15 +178,15 @@ using XHTML or HTML). * Angular script tag - <script src="lib/angular/angular.js" ng:autobind> + <script src="lib/angular/angular.js"> This single line of code is all that is needed to bootstrap an angular application. The code downloads the `angular.js` script and registers a callback that will be executed by the browser when the containing HTML page is fully downloaded. When the callback is executed, Angular -looks for the {@link api/angular.directive.ng:autobind ng:autobind} attribute. If Angular finds -`ng:autobind`, it creates a root scope for the application and associates it with the `<html>` -element of the template: +looks for the {@link api/angular.directive.ng:app ng:app} attribute. If Angular finds +`ng:app`, it creates a root scope for the application and associates it with the element of +when `ng:app` was declared. <img src="img/tutorial/tutorial_00_final.png"> |
