docs(core): add relative path information to component metadata (#27962)

Adds the information that the templateUrl and styleUrls options supports only relative Urls.

Adds more information about relative paths and absolute URLs in project metadata.

PR Close #27962
This commit is contained in:
Erick Xavier 2018-11-30 16:06:37 -02:00 committed by Jason Aden
parent 41e68f7a7a
commit eeadb37b19
1 changed files with 3 additions and 3 deletions

View File

@ -482,8 +482,8 @@ export interface Component extends Directive {
moduleId?: string;
/**
* The URL of a template file for an Angular component. If provided,
* do not supply an inline template using `template`.
* The relative path or absolute URL of a template file for an Angular component.
* If provided, do not supply an inline template using `template`.
*
*/
templateUrl?: string;
@ -496,7 +496,7 @@ export interface Component extends Directive {
template?: string;
/**
* One or more URLs for files containing CSS stylesheets to use
* One or more relative paths or absolute URLs for files containing CSS stylesheets to use
* in this component.
*/
styleUrls?: string[];