From f7d28cd377f06224247b950680517a187a7b6749 Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Thu, 6 Feb 2014 14:02:18 +0000 Subject: docs(all): convert
/
snippets to GFM snippets --- docs/content/tutorial/step_06.ngdoc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'docs/content/tutorial/step_06.ngdoc') diff --git a/docs/content/tutorial/step_06.ngdoc b/docs/content/tutorial/step_06.ngdoc index 09052e8f..3eabeadb 100644 --- a/docs/content/tutorial/step_06.ngdoc +++ b/docs/content/tutorial/step_06.ngdoc @@ -25,7 +25,8 @@ Note that the `phones.json` file contains unique ids and image urls for each of urls point to the `app/img/phones/` directory. __`app/phones/phones.json`__ (sample snippet): -
+
+```js
 [
   {
     ...
@@ -36,13 +37,14 @@ __`app/phones/phones.json`__ (sample snippet):
   },
   ...
 ]
-
+``` ## Template __`app/index.html`:__ -
+
+```html
 ...
         
 ...
-
+``` To dynamically generate links that will in the future lead to phone detail pages, we used the now-familiar double-curly brace binding in the `href` attribute values. In step 2, we added the @@ -70,7 +72,8 @@ Using the `ngSrc` directive prevents the browser from making an http request to ## Test __`test/e2e/scenarios.js`__: -
+
+```js
 ...
     it('should render phone specific links', function() {
       input('query').enter('nexus');
@@ -78,7 +81,7 @@ __`test/e2e/scenarios.js`__:
       expect(browser().location().url()).toBe('/phones/nexus-s');
     });
 ...
-
+``` We added a new end-to-end test to verify that the app is generating correct links to the phone views that we will implement in the upcoming steps. -- cgit v1.2.3