From 917e0ce1c2829224e3ee53a069599fccbc5751a3 Mon Sep 17 00:00:00 2001 From: Tim Xiao Date: Sun, 2 Oct 2016 17:43:40 +0100 Subject: [PATCH 1/3] 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/' --- public/docs/_examples/toh-5/ts/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..54d2add1bc 100644 --- a/public/docs/_examples/toh-5/ts/app/app.component.ts +++ b/public/docs/_examples/toh-5/ts/app/app.component.ts @@ -14,7 +14,7 @@ import { Component } from '@angular/core'; `, // #enddocregion template // #docregion styleUrls - styleUrls: ['app/app.component.css'], + styleUrls: ['app.component.css'], // #enddocregion styleUrls }) export class AppComponent { From ae73ea3cae5c301248229472ca4e6711f55dcc29 Mon Sep 17 00:00:00 2001 From: Tim Xiao Date: Sun, 2 Oct 2016 20:38:07 +0100 Subject: [PATCH 2/3] docs: fixed path error in the tutorial (HTTP) same problem fixed as commit 917e0ce1c2829224e3ee53a069599fccbc5751a3 --- public/docs/_examples/toh-6/ts/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..e9b93366e6 100644 --- a/public/docs/_examples/toh-6/ts/app/app.component.ts +++ b/public/docs/_examples/toh-6/ts/app/app.component.ts @@ -13,7 +13,7 @@ import { Component } from '@angular/core'; `, - styleUrls: ['app/app.component.css'] + styleUrls: ['app.component.css'] }) export class AppComponent { title = 'Tour of Heroes'; From f189496b1cbb68df38056aca17d87f69a0b323c5 Mon Sep 17 00:00:00 2001 From: Tim Xiao Date: Sun, 2 Oct 2016 21:57:16 +0100 Subject: [PATCH 3/3] docs: Added moduleId for styleUrls referencing in these two classes --- public/docs/_examples/toh-5/ts/app/app.component.ts | 1 + public/docs/_examples/toh-6/ts/app/app.component.ts | 1 + 2 files changed, 2 insertions(+) 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 54d2add1bc..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: ` 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 e9b93366e6..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: `