docs: fixed path typo in tutorial(Routing, HTTP) (#2526)

* Fixed typo in tutorial(Routing)

The path to `app.component.css` should start from current directory, not 'app/', since the file is already in 'app/'

* docs: fixed path error in the tutorial (HTTP)

same problem fixed as commit 917e0ce1c2829224e3ee53a069599fccbc5751a3

* docs: Added moduleId for styleUrls referencing in these two classes
This commit is contained in:
Tim Xiao 2016-10-06 00:14:44 +01:00 committed by Ward Bell
parent ff118810ff
commit d9416a8ae9
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @Component({
moduleId: module.id,
selector: 'my-app', selector: 'my-app',
// #docregion template // #docregion template
template: ` template: `
@ -14,7 +15,7 @@ import { Component } from '@angular/core';
`, `,
// #enddocregion template // #enddocregion template
// #docregion styleUrls // #docregion styleUrls
styleUrls: ['app/app.component.css'], styleUrls: ['app.component.css'],
// #enddocregion styleUrls // #enddocregion styleUrls
}) })
export class AppComponent { export class AppComponent {

View File

@ -3,6 +3,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @Component({
moduleId: module.id,
selector: 'my-app', selector: 'my-app',
template: ` template: `
@ -13,7 +14,7 @@ import { Component } from '@angular/core';
</nav> </nav>
<router-outlet></router-outlet> <router-outlet></router-outlet>
`, `,
styleUrls: ['app/app.component.css'] styleUrls: ['app.component.css']
}) })
export class AppComponent { export class AppComponent {
title = 'Tour of Heroes'; title = 'Tour of Heroes';