docs(cheatsheet): add moduleId (#10095)

This commit is contained in:
Sam Herrmann 2016-08-02 10:34:04 -04:00 committed by Victor Berchet
parent e0eea6c2f4
commit c977a906b3
1 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,12 @@ so the `ng.core.Directive` configuration applies to components as well{@endtarge
{@target ts dart}`@Component` extends `@Directive`,
so the `@Directive` configuration applies to components as well{@endtarget}
@cheatsheetItem
syntax(ts js):
`moduleId: module.id`|`moduleId:`
description:
If set, the `templateUrl` and `styleUrl` is resolved relative to the component.
@cheatsheetItem
syntax(ts dart):
`viewProviders: [MyService, { provide: ... }]`|`viewProviders:`