Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/content/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Let's start with the contents of `index.html`:
<base href="/">
<title>My app</title>
</head>
<body ng-app="myApp" ng-controller="AppController as app">
<body ng-app="app" ng-controller="AppController as app">
<div ng-outlet></div>

<script src="/node_modules/angular/angular.js"></script>
Expand All @@ -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) {}
```

Expand Down Expand Up @@ -159,7 +159,7 @@ We can link to our `detail` component using the `ng-link` directive.
Add this to `index.html`:

```html
<body ng-app="myApp" ng-controller="AppController as app">
<body ng-app="app" ng-controller="AppController as app">
<a ng-link="detail({id: 5})">link to detail</a>
...
```
Expand Down