aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/dev_guide.services.injecting_controllers.ngdoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/guide/dev_guide.services.injecting_controllers.ngdoc')
-rw-r--r--docs/content/guide/dev_guide.services.injecting_controllers.ngdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/guide/dev_guide.services.injecting_controllers.ngdoc b/docs/content/guide/dev_guide.services.injecting_controllers.ngdoc
index b24dec6e..312342b8 100644
--- a/docs/content/guide/dev_guide.services.injecting_controllers.ngdoc
+++ b/docs/content/guide/dev_guide.services.injecting_controllers.ngdoc
@@ -13,7 +13,7 @@ IDs matters: the order of the services in the array will be used when calling th
with injected parameters. The names of parameters in factory function don't matter, but by
convention they match the service IDs, which has added benefits discussed below.
-<pre>
+```js
function myController($loc, $log) {
this.firstMethod = function() {
// use $location service
@@ -26,7 +26,7 @@ function myController($loc, $log) {
}
// which services to inject ?
myController.$inject = ['$location', '$log'];
-</pre>
+```
<doc:example module="MyServiceModule">
<doc:source>