From 3751f172b3986604853700a1475a7ad81b42a9b1 Mon Sep 17 00:00:00 2001
From: Igor Minar
Date: Tue, 10 May 2011 17:45:42 -0700
Subject: add new batch of tutorial docs and images
---
docs/content/tutorial/step_04.ngdoc | 97 +++++++++++++++++++++++++++++++------
1 file changed, 82 insertions(+), 15 deletions(-)
(limited to 'docs/content/tutorial/step_04.ngdoc')
diff --git a/docs/content/tutorial/step_04.ngdoc b/docs/content/tutorial/step_04.ngdoc
index 2ca34929..9848c821 100755
--- a/docs/content/tutorial/step_04.ngdoc
+++ b/docs/content/tutorial/step_04.ngdoc
@@ -1,4 +1,4 @@
-@ngdoc overview
+@ngdoc overview
@name Tutorial: Step 4
@description
@@ -12,35 +12,48 @@ Diff}
+
In this step, you will add a feature to let your users control the order of the items in the phone
-list. The dynamic ordering is implemented by creating a new model property, wiring it together
-with the repeater, and letting the data binding magic do the rest of the work.
+list. The dynamic ordering is implemented by creating a new model property, wiring it together with
+the repeater, and letting the data binding magic do the rest of the work.
+
+
1. Reset your workspace to Step 4 using:
- git checkout --force step-4
+
+ git checkout -f step-4
+
or
+
./goto_step.sh 4
+
2. Refresh your browser or check the app out on {@link
-http://angular.github.com/angular-phonecat/step-4/app angular's server}. You should see that in
+http://angular.github.com/angular-phonecat/step-4/app angular's server}.
+
+You should see that in
addition to the search box, the app displays a drop down menu that allows users to control the
order in which the phones are listed.
+
The most important changes are listed below. You can see the full diff on {@link
https://github.com/angular/angular-phonecat/compare/step-3...step-4
GitHub}:
+
+
## Template
+
__`app/index.html`:__
...
-
+
Search:
@@ -53,6 +66,7 @@ __`app/index.html`:__
+
{{phone.name}}
@@ -62,31 +76,44 @@ __`app/index.html`:__
...
+
In the `index.html` template we made the following changes:
+
* First, we added a `