aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/tutorial
diff options
context:
space:
mode:
authorMisko Hevery2012-01-06 18:10:47 -0800
committerMisko Hevery2012-01-10 22:27:00 -0800
commit5143e7bf065a3cbdf8400cf095b653d51bc83b8f (patch)
tree980149c365d4cb5586d27975d26366a25ff7be6a /docs/content/tutorial
parentafd25446d23f24872eb20ac79c8fbd2cff203ef0 (diff)
downloadangular.js-5143e7bf065a3cbdf8400cf095b653d51bc83b8f.tar.bz2
feat(module): new module loader
Diffstat (limited to 'docs/content/tutorial')
-rw-r--r--docs/content/tutorial/step_00.ngdoc14
-rw-r--r--docs/content/tutorial/step_02.ngdoc3
-rw-r--r--docs/content/tutorial/step_07.ngdoc3
3 files changed, 11 insertions, 9 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">
diff --git a/docs/content/tutorial/step_02.ngdoc b/docs/content/tutorial/step_02.ngdoc
index 792228df..ceeb0e92 100644
--- a/docs/content/tutorial/step_02.ngdoc
+++ b/docs/content/tutorial/step_02.ngdoc
@@ -29,6 +29,7 @@ The __view__ component is constructed by Angular from this template:
__`app/index.html`:__
<pre>
+<html ng:app>
...
<body ng:controller="PhoneListCtrl">
@@ -39,7 +40,7 @@ __`app/index.html`:__
</li>
</ul>
- <script src="lib/angular/angular.js" ng:autobind></script>
+ <script src="lib/angular/angular.js"></script>
<script src="js/controllers.js"></script>
</body>
</html>
diff --git a/docs/content/tutorial/step_07.ngdoc b/docs/content/tutorial/step_07.ngdoc
index 1467a8a7..0aebb9fe 100644
--- a/docs/content/tutorial/step_07.ngdoc
+++ b/docs/content/tutorial/step_07.ngdoc
@@ -103,12 +103,13 @@ route into the layout template, which makes it a perfect fit for our `index.html
__`app/index.html`:__
<pre>
+<html ng:app>
...
<body ng:controller="PhoneCatCtrl">
<ng:view></ng:view>
- <script src="lib/angular/angular.js" ng:autobind></script>
+ <script src="lib/angular/angular.js"></script>
<script src="js/controllers.js"></script>
</body>
</html>