From a3cf58b67a8d2b920bd7789354cf452fe6821fd9 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 27 May 2016 12:22:07 -0700 Subject: [PATCH] docs: add info about __moduleName into to DirectiveMetadata docs --- modules/@angular/core/src/metadata/directives.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/@angular/core/src/metadata/directives.ts b/modules/@angular/core/src/metadata/directives.ts index 11b4da5776..1b8d7e2292 100644 --- a/modules/@angular/core/src/metadata/directives.ts +++ b/modules/@angular/core/src/metadata/directives.ts @@ -850,8 +850,11 @@ export class ComponentMetadata extends DirectiveMetadata { /** * The module id of the module that contains the component. * Needed to be able to resolve relative urls for templates and styles. + * In CommonJS, this can always be set to `module.id`, similarly SystemJS exposes `__moduleName` + * variable within each module. + * * In Dart, this can be determined automatically and does not need to be set. - * In CommonJS, this can always be set to `module.id`. + * * ## Simple Example *