Kathy Walrath 3fd898e91f docs(cheatsheet): copyedit
Fixed a few little things. I'll probably have more changes to make later, once I understand everything better.

Also added a missing syntax line.

Closes 
2015-12-11 18:41:57 +00:00

1.0 KiB
Raw Blame History

@cheatsheetSection Component configuration @cheatsheetIndex 6 @description @Component extends @Directive, so the @Directive configuration applies to components as well

@cheatsheetItem syntax: viewProviders: [MyService, provide(...)]|viewProviders: description: Array of dependency injection providers scoped to this component's view.

@cheatsheetItem syntax: template: 'Hello {{name}}' templateUrl: 'my-component.html'|template:|templateUrl: description: Inline template / external template URL of the component's view.

@cheatsheetItem syntax: styles: ['.primary {color: red}'] styleUrls: ['my-component.css']|styles:|styleUrls: description: List of inline CSS styles / external stylesheet URLs for styling components view.

@cheatsheetItem syntax: directives: [MyDirective, MyComponent]|directives: description: List of directives used in the the components template.

@cheatsheetItem syntax: pipes: [MyPipe, OtherPipe]|pipes: description: List of pipes used in the component's template.