Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit d9416a8

Browse files
timxzzwardbell
authored andcommitted
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 917e0ce * docs: Added moduleId for styleUrls referencing in these two classes
1 parent ff11881 commit d9416a8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

public/docs/_examples/toh-5/ts/app/app.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { Component } from '@angular/core';
33

44
@Component({
5+
moduleId: module.id,
56
selector: 'my-app',
67
// #docregion template
78
template: `
@@ -14,7 +15,7 @@ import { Component } from '@angular/core';
1415
`,
1516
// #enddocregion template
1617
// #docregion styleUrls
17-
styleUrls: ['app/app.component.css'],
18+
styleUrls: ['app.component.css'],
1819
// #enddocregion styleUrls
1920
})
2021
export class AppComponent {

public/docs/_examples/toh-6/ts/app/app.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { Component } from '@angular/core';
44

55
@Component({
6+
moduleId: module.id,
67
selector: 'my-app',
78

89
template: `
@@ -13,7 +14,7 @@ import { Component } from '@angular/core';
1314
</nav>
1415
<router-outlet></router-outlet>
1516
`,
16-
styleUrls: ['app/app.component.css']
17+
styleUrls: ['app.component.css']
1718
})
1819
export class AppComponent {
1920
title = 'Tour of Heroes';

0 commit comments

Comments
 (0)