From d9416a8ae97d69dc990f54a29f66e4e21333d0fd Mon Sep 17 00:00:00 2001 From: Tim Xiao Date: Thu, 6 Oct 2016 00:14:44 +0100 Subject: [PATCH] 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 --- public/docs/_examples/toh-5/ts/app/app.component.ts | 3 ++- public/docs/_examples/toh-6/ts/app/app.component.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/docs/_examples/toh-5/ts/app/app.component.ts b/public/docs/_examples/toh-5/ts/app/app.component.ts index 12fe3bfd52..e0cb229f57 100644 --- a/public/docs/_examples/toh-5/ts/app/app.component.ts +++ b/public/docs/_examples/toh-5/ts/app/app.component.ts @@ -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 { diff --git a/public/docs/_examples/toh-6/ts/app/app.component.ts b/public/docs/_examples/toh-6/ts/app/app.component.ts index e55e09f661..01292eb4cd 100644 --- a/public/docs/_examples/toh-6/ts/app/app.component.ts +++ b/public/docs/_examples/toh-6/ts/app/app.component.ts @@ -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'; `, - styleUrls: ['app/app.component.css'] + styleUrls: ['app.component.css'] }) export class AppComponent { title = 'Tour of Heroes';