From beb8efc71f584c9eb6569387c5f476e311b475fc Mon Sep 17 00:00:00 2001 From: Ward Bell Date: Tue, 8 Mar 2016 15:09:31 -0800 Subject: [PATCH] docs(toh-5) reworded templateUrl/styleUrls notes --- public/docs/ts/latest/tutorial/toh-pt5.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/docs/ts/latest/tutorial/toh-pt5.jade b/public/docs/ts/latest/tutorial/toh-pt5.jade index d81ec13e25..11dae5d778 100644 --- a/public/docs/ts/latest/tutorial/toh-pt5.jade +++ b/public/docs/ts/latest/tutorial/toh-pt5.jade @@ -286,7 +286,7 @@ code-example(format="." language="bash"). +makeExample('toh-5/ts/app/dashboard.component.ts', 'template-url', 'app/dashboard.component.ts (templateUrl)')(format=".") .l-sub-section :marked - Even if the template sits on the same folder as the component, the path for the template will be root-relative. + We specify the path _all the way back to the application root_. Angular doesn't support module-relative paths. :marked Create that file with these contents: +makeExample('toh-5/ts/app/dashboard.component.html', null, 'dashboard.component.html')(format=".") @@ -586,7 +586,7 @@ figure.image-display :marked The `styleUrls` property is an array of style file names (with paths). We could list multiple style files from different locations if we needed them. - Like with `templateUrl`, the paths are root-relative. + As with `templateUrl`, we must specify the path _all the way back to the application root_. :marked ### Stylish Hero Details The designers also gave us CSS styles specifically for the `HeroDetailComponent`.