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:
parent
ff118810ff
commit
d9416a8ae9
|
@ -2,6 +2,7 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'my-app',
|
||||
// #docregion template
|
||||
template: `
|
||||
|
@ -14,7 +15,7 @@ import { Component } from '@angular/core';
|
|||
`,
|
||||
// #enddocregion template
|
||||
// #docregion styleUrls
|
||||
styleUrls: ['app/app.component.css'],
|
||||
styleUrls: ['app.component.css'],
|
||||
// #enddocregion styleUrls
|
||||
})
|
||||
export class AppComponent {
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'my-app',
|
||||
|
||||
template: `
|
||||
|
@ -13,7 +14,7 @@ import { Component } from '@angular/core';
|
|||
</nav>
|
||||
<router-outlet></router-outlet>
|
||||
`,
|
||||
styleUrls: ['app/app.component.css']
|
||||
styleUrls: ['app.component.css']
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'Tour of Heroes';
|
||||
|
|
Loading…
Reference in New Issue