parent
4371465f4e
commit
4ab05a9355
@ -3,7 +3,7 @@ include ../_util-fns
|
|||||||
:marked
|
:marked
|
||||||
## Write *Component-Relative* URLs to component templates and style files
|
## Write *Component-Relative* URLs to component templates and style files
|
||||||
|
|
||||||
Our components ofter refer to external template and style files.
|
Our components often refer to external template and style files.
|
||||||
We identify those files with a URL in the `templateUrl` and `styleUrls` properties of the `@Component` metadata
|
We identify those files with a URL in the `templateUrl` and `styleUrls` properties of the `@Component` metadata
|
||||||
as seen here:
|
as seen here:
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ include ../_util-fns
|
|||||||
By default, we *must* specify the full path back to the application root.
|
By default, we *must* specify the full path back to the application root.
|
||||||
We call this an ***absolute path*** because it is *absolute* with respect to the application root.
|
We call this an ***absolute path*** because it is *absolute* with respect to the application root.
|
||||||
|
|
||||||
There are two problems with an *absolute path*
|
There are two problems with an *absolute path*:
|
||||||
|
|
||||||
1. We have to remember the full path back to the application root.
|
1. We have to remember the full path back to the application root.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user