read-only
The module id of the module that contains the component.
Needed to be able to resolve relative urls for templates and styles.
In Dart, this can be determined automatically and does not need to be set.
In CommonJS, this can always be set to module.id
.
Example
@Directive(
selector: 'someDir',
moduleId: module.id
})
class SomeDir {
}