diff options
| author | Igor Minar | 2011-06-06 08:50:35 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-06-06 22:52:02 -0700 | 
| commit | 7f1e2e48467f80cc083d24b44f088620e4e7bcb6 (patch) | |
| tree | 731a91366c5780985be6d4c5ddbe34e307d5cb70 /docs/content/tutorial/step_06.ngdoc | |
| parent | 5533e48dead5cff3107e72ee80bf0f19df77c1e9 (diff) | |
| download | angular.js-7f1e2e48467f80cc083d24b44f088620e4e7bcb6.tar.bz2 | |
new batch of docs
Diffstat (limited to 'docs/content/tutorial/step_06.ngdoc')
| -rwxr-xr-x | docs/content/tutorial/step_06.ngdoc | 54 | 
1 files changed, 15 insertions, 39 deletions
| diff --git a/docs/content/tutorial/step_06.ngdoc b/docs/content/tutorial/step_06.ngdoc index 154b984e..e7fa1660 100755 --- a/docs/content/tutorial/step_06.ngdoc +++ b/docs/content/tutorial/step_06.ngdoc @@ -1,38 +1,24 @@  @ngdoc overview -@name Tutorial: Step 6 +@name Tutorial: 6 - Templating Links & Images  @description -<table id="tutorial_nav"> -<tr> -<td id="previous_step">{@link tutorial.step_05 Previous}</td> -<td id="step_result">{@link  http://angular.github.com/angular-phonecat/step-6/app Live Demo -}</td> -<td id="tut_home">{@link tutorial Tutorial Home}</td> -<td id="code_diff">{@link https://github.com/angular/angular-phonecat/compare/step-5...step-6 Code -Diff}</td> -<td id="next_step">{@link tutorial.step_07 Next}</td> -</tr> -</table> -In this step, you will add thumbnail images for the phones in the phone list, and links that, for -now, will go nowhere. In subsequent steps you will use the links to display additional information -about the phones in the catalog. +<ul doc:tutorial-nav="6"></ul> + -1. Reset your workspace to step 6. +In this step, you will add thumbnail images for the phones in the phone list, and links that, for +now, will go nowhere. In subsequent steps you will use the links to display additional information +about the phones in the catalog. -         git checkout -f step-6 -  or +<doc:tutorial-instructions step="6"></doc:tutorial-instructions> -         ./goto_step.sh 6 -2. Refresh your browser or check the app out on {@link -http://angular.github.com/angular-phonecat/step-6/app angular's server}.  You should now see links and images of the phones in the list. @@ -86,16 +72,16 @@ __`app/index.html`:__  To dynamically generate links that will in the future lead to phone detail pages, we used the -now-familiar {@link angular.markup double-curly brace markup} in the `href` attribute values. In -step 2, we added the `{{phone.name}}` binding as the element content. In this step the -'{{phone.id}}' binding is used in the element attribute. +now-familiar {@link guide/dev_guide.compiler.markup double-curly brace markup} in the `href` +attribute values. In step 2, we added the `{{phone.name}}` binding as the element content. In this +step the '{{phone.id}}' binding is used in the element attribute.  We also added phone images next to each record using an image tag with the {@link -angular.directive.ng:src ng:src} directive. That directive prevents the browser from treating the -angular `{{ exppression }}` markup literally, which it would have done if we had only specified an -attribute binding in a regular `src` attribute (`<img src="{{phone.imageUrl}}">`). Using `ng:src` -prevents the browser from making an http request to an invalid location. +api/angular.directive.ng:src ng:src} directive. That directive prevents the browser from treating +the angular `{{ exppression }}` markup literally, which it would have done if we had only specified +an attribute binding in a regular `src` attribute (`<img src="{{phone.imageUrl}}">`). Using +`ng:src` prevents the browser from making an http request to an invalid location. @@ -145,15 +131,5 @@ templates and how angular makes it easy to create applications that have multipl -<table id="tutorial_nav"> -<tr> -<td id="previous_step">{@link tutorial.step_05 Previous}</td> -<td id="step_result">{@link  http://angular.github.com/angular-phonecat/step-6/app Live Demo -}</td> -<td id="tut_home">{@link tutorial Tutorial Home}</td> -<td id="code_diff">{@link https://github.com/angular/angular-phonecat/compare/step-5...step-6 Code -Diff}</td> -<td id="next_step">{@link tutorial.step_07 Next}</td> -</tr> -</table> +<ul doc:tutorial-nav="6"></ul> | 
