From eeadb37b19e867aa22cb5cc940f5cf56ea242f24 Mon Sep 17 00:00:00 2001 From: Erick Xavier <648239+ErickXavier@users.noreply.github.com> Date: Fri, 30 Nov 2018 16:06:37 -0200 Subject: [PATCH] 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 --- packages/core/src/metadata/directives.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/metadata/directives.ts b/packages/core/src/metadata/directives.ts index 0e34da068a..8e556613c6 100644 --- a/packages/core/src/metadata/directives.ts +++ b/packages/core/src/metadata/directives.ts @@ -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[];