forked from angular/angular.io
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcomponent-styles.jade
36 lines (29 loc) · 1.22 KB
/
component-styles.jade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
extends ../../../ts/_cache/guide/component-styles.jade
block includes
include ../_util-fns
//- TODO: consider adding material equivalent to TS Appendices 1 & 2 if relevant.
block style-url
:marked
Note that the URLs in `styleUrls` are relative to the component.
block module-bundlers
//- TODO: determine if an equivalent of the TS material is relevant for Dart.
//- Leaving empty for now.
block css-import-url
:marked
In *this* case the URL is relative to the CSS file into which we are importing.
.alert.is-important
:marked
URLs are currently not interpreted in this way, see
[issue 8518](https://github.com/angular/angular/issues/8518).
Until this issue is fixed, absolute package-reference style URLs must
be given as is illustrated below.
block module-id
p.
Thankfully, this is the default interpretation of relative URLs in
Angular2 for Dart:
+makeExample('component-styles/ts/app/quest-summary.component.ts', 'urls')(format='.')
:marked
Note that special measures must be taken in Angular2 for TypeScript, if
relative URLs are to have the same interpretation. See
[here](../../../ts/latest/guide/component-styles.html#relative-urls)
for details.