From 7f1e2e48467f80cc083d24b44f088620e4e7bcb6 Mon Sep 17 00:00:00 2001
From: Igor Minar
Date: Mon, 6 Jun 2011 08:50:35 -0700
Subject: new batch of docs
---
docs/content/tutorial/step_04.ngdoc | 51 +++++++++----------------------------
1 file changed, 12 insertions(+), 39 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 9848c821..7d5419e3 100755
--- a/docs/content/tutorial/step_04.ngdoc
+++ b/docs/content/tutorial/step_04.ngdoc
@@ -1,43 +1,27 @@
@ngdoc overview
-@name Tutorial: Step 4
+@name Tutorial: 4 - Two-way Data Binding
@description
-
-
-| {@link tutorial.step_03 Previous} |
-{@link http://angular.github.com/angular-phonecat/step-4/app Live Demo} |
-{@link tutorial Tutorial Home} |
-{@link https://github.com/angular/angular-phonecat/compare/step-3...step-4 Code
-Diff} |
-{@link tutorial.step_05 Next} |
-
-
-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.
+
-1. Reset your workspace to Step 4 using:
-
+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.
- 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
-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.
+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
@@ -87,9 +71,9 @@ two provided sorting options.
-* We then chained the `$filter` method with {@link angular.Array.orderBy `$orderBy`} method to
+* We then chained the `$filter` method with {@link api/angular.array.orderBy `$orderBy`} method to
further process the input into the repeater. `$orderBy` is a utility method similar to {@link
-angular.Array.filter `$filter`}, but instead of filtering an array, it reorders it.
+api/angular.array.filter `$filter`}, but instead of filtering an array, it reorders it.
Angular creates a two way data-binding between the select element and the `orderProp` model.
@@ -220,7 +204,7 @@ __`test/e2e/scenarios.js`:__
it('should be possible to control phone order via the drop down select box', function() {
- //let's narrow the dataset to make the test assertions shorter
+ // let's narrow the dataset to make the test assertions shorter
input('query').enter('tablet');
@@ -270,16 +254,5 @@ services and how angular uses dependency injection.
-
-
-| {@link tutorial.step_03 Previous} |
-{@link http://angular.github.com/angular-phonecat/step-4/app Live Demo} |
-{@link tutorial Tutorial Home} |
-{@link https://github.com/angular/angular-phonecat/compare/step-3...step-4 Code
-Diff} |
-{@link tutorial.step_05 Next} |
-
-
-
-
+
--
cgit v1.2.3