docs(cheatsheet): copy edit component-configuration.md (#11155)

Also remove Dart-specific code, since the Dart cheatsheet is produced
from dart-lang/angular2.

Part of a group of cheatsheet PRs (see #11149).

cc @Foxandxss & @IgorMinar
This commit is contained in:
Kathy Walrath 2016-08-29 18:12:51 -07:00 committed by Victor Berchet
parent b8ea71afb6
commit d59ee3caaa
1 changed files with 6 additions and 6 deletions

View File

@ -4,17 +4,17 @@ Component configuration
@description @description
{@target js}`ng.core.Component` extends `ng.core.Directive`, {@target js}`ng.core.Component` extends `ng.core.Directive`,
so the `ng.core.Directive` configuration applies to components as well{@endtarget} so the `ng.core.Directive` configuration applies to components as well{@endtarget}
{@target ts dart}`@Component` extends `@Directive`, {@target ts}`@Component` extends `@Directive`,
so the `@Directive` configuration applies to components as well{@endtarget} so the `@Directive` configuration applies to components as well{@endtarget}
@cheatsheetItem @cheatsheetItem
syntax(ts js): syntax:
`moduleId: module.id`|`moduleId:` `moduleId: module.id`|`moduleId:`
description: description:
If set, the `templateUrl` and `styleUrl` is resolved relative to the component. If set, the `templateUrl` and `styleUrl` are resolved relative to the component.
@cheatsheetItem @cheatsheetItem
syntax(ts dart): syntax(ts):
`viewProviders: [MyService, { provide: ... }]`|`viewProviders:` `viewProviders: [MyService, { provide: ... }]`|`viewProviders:`
syntax(js): syntax(js):
`viewProviders: [MyService, { provide: ... }]`|`viewProviders:` `viewProviders: [MyService, { provide: ... }]`|`viewProviders:`
@ -27,7 +27,7 @@ syntax:
`template: 'Hello {{name}}' `template: 'Hello {{name}}'
templateUrl: 'my-component.html'`|`template:`|`templateUrl:` templateUrl: 'my-component.html'`|`template:`|`templateUrl:`
description: description:
Inline template / external template URL of the component's view. Inline template or external template URL of the component's view.
@cheatsheetItem @cheatsheetItem
@ -35,4 +35,4 @@ syntax:
`styles: ['.primary {color: red}'] `styles: ['.primary {color: red}']
styleUrls: ['my-component.css']`|`styles:`|`styleUrls:` styleUrls: ['my-component.css']`|`styles:`|`styleUrls:`
description: description:
List of inline CSS styles / external stylesheet URLs for styling components view. List of inline CSS styles or external stylesheet URLs for styling the components view.