docs: add info about __moduleName into to DirectiveMetadata docs

This commit is contained in:
Igor Minar 2016-05-27 12:22:07 -07:00
parent 70d944a59c
commit a3cf58b67a
1 changed files with 4 additions and 1 deletions

View File

@ -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
*