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_08.ngdoc | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'docs/content/tutorial/step_08.ngdoc') diff --git a/docs/content/tutorial/step_08.ngdoc b/docs/content/tutorial/step_08.ngdoc index 7ba6d36a..02c03773 100644 --- a/docs/content/tutorial/step_08.ngdoc +++ b/docs/content/tutorial/step_08.ngdoc @@ -27,7 +27,8 @@ In addition to `phones.json`, the `app/phones/` directory also contains one json phone: __`app/phones/nexus-s.json`:__ (sample snippet) -
+
+```js
{
"additionalFeatures": "Contour Display, Near Field Communications (NFC),...",
"android": {
@@ -46,7 +47,7 @@ __`app/phones/nexus-s.json`:__ (sample snippet)
"ram": "512MB"
}
}
-
+```
Each of these files describes various properties of the phone using the same data structure. We'll
@@ -59,7 +60,8 @@ We'll expand the `PhoneDetailCtrl` by using the `$http` service to fetch the jso
the same way as the phone list controller.
__`app/js/controllers.js`:__
-
+
+```js
var phonecatControllers = angular.module('phonecatControllers',[]);
phonecatControllers.controller('PhoneDetailCtrl', ['$scope', '$routeParams', '$http',
@@ -68,7 +70,7 @@ phonecatControllers.controller('PhoneDetailCtrl', ['$scope', '$routeParams', '$h
$scope.phone = data;
});
}]);
-
+```
To construct the URL for the HTTP request, we use `$routeParams.phoneId` extracted from the current
route by the `$route` service.
@@ -82,7 +84,8 @@ our model into the view.
__`app/partials/phone-detail.html`:__
-+ +```html![]()
{{phone.name}}
@@ -109,7 +112,7 @@ __`app/partials/phone-detail.html`:__