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

Commit 5fd6860

Browse files
wardbellAlmeroSteyn
authored andcommitted
docs(component-styles): mark __moduleName experimental; use alert instead of callout.
closes #1054
1 parent 52f47af commit 5fd6860

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

public/docs/ts/latest/guide/component-styles.jade

+6-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ a(id="special-selectors")
118118
:marked
119119
The `/deep/` selector also has the alias `>>>`. We can use either of the two interchangeably.
120120

121-
.callout.is-important
121+
.alert.is-important
122122
:marked
123123
The `/deep/` and `>>>` selectors should only be used with **emulated** view encapsulation.
124124
This is the default and it is what we use most of the time. See the
@@ -160,7 +160,7 @@ a(id='loading-styles')
160160

161161
+makeExample('component-styles/ts/app/hero-details.component.ts', 'styleurls')
162162

163-
.callout.is-important
163+
.alert.is-important
164164
:marked
165165
The URL is ***relative to the application root*** which is usually the
166166
location of the `index.html` web page that hosts the application.
@@ -333,6 +333,10 @@ code-example(format='').
333333

334334
Fortunately, *certain* module loaders make it easy.
335335
SystemJS (starting in v.0.19.19) sets a special `__moduleName` variable to the URL of the component file.
336+
.alert.is-important
337+
:marked
338+
Caution: we currently regard the *__moduleName* feature as experimental.
339+
:marked
336340
Now it's trivial to set the `moduleId` to the `__moduleName` and write module-relative paths for style and template URLs.
337341

338342
+makeExample('component-styles/ts/app/quest-summary.component.ts','', 'app/quest-summary.component.ts')

0 commit comments

Comments
 (0)