diff --git a/docs/content/getting-started.md b/docs/content/getting-started.md index 12f04f4..9c0ec0a 100644 --- a/docs/content/getting-started.md +++ b/docs/content/getting-started.md @@ -47,7 +47,7 @@ Let's start with the contents of `index.html`: My app - +
@@ -67,9 +67,9 @@ So how do we configure the app? Let's open `app.js` and find out. Add this to th angular.module('app', ['ngNewRouter']) .controller('AppController', ['$router', AppController]); -AppController.$routeConfig([ +AppController.$routeConfig = [ {path: '/', component: 'home' } -]); +]; function AppController ($router) {} ``` @@ -159,7 +159,7 @@ We can link to our `detail` component using the `ng-link` directive. Add this to `index.html`: ```html - + link to detail ... ```