2015-11-06 07:26:24 -05:00
|
|
|
|
@cheatsheetSection
|
|
|
|
|
Directive configuration
|
2016-08-08 20:18:50 -04:00
|
|
|
|
@cheatsheetIndex 6
|
2015-11-06 07:26:24 -05:00
|
|
|
|
@description
|
2015-12-12 22:17:26 -05:00
|
|
|
|
{@target ts}`@Directive({ property1: value1, ... })`{@endtarget}
|
|
|
|
|
{@target js}`ng.core.Directive({ property1: value1, ... }).Class({...})`{@endtarget}
|
2015-11-05 10:04:55 -05:00
|
|
|
|
|
|
|
|
|
@cheatsheetItem
|
2015-12-09 07:33:42 -05:00
|
|
|
|
syntax:
|
2015-11-05 10:04:55 -05:00
|
|
|
|
`selector: '.cool-button:not(a)'`|`selector:`
|
2015-12-09 07:33:42 -05:00
|
|
|
|
description:
|
2015-12-10 12:52:19 -05:00
|
|
|
|
Specifies a CSS selector that identifies this directive within a template. Supported selectors include `element`,
|
2015-11-05 10:04:55 -05:00
|
|
|
|
`[attribute]`, `.class`, and `:not()`.
|
|
|
|
|
|
|
|
|
|
Does not support parent-child relationship selectors.
|
|
|
|
|
|
|
|
|
|
@cheatsheetItem
|
2016-09-01 15:06:42 -04:00
|
|
|
|
syntax(ts):
|
2016-06-15 18:11:39 -04:00
|
|
|
|
`providers: [MyService, { provide: ... }]`|`providers:`
|
2015-12-12 22:17:26 -05:00
|
|
|
|
syntax(js):
|
2016-06-15 18:11:39 -04:00
|
|
|
|
`providers: [MyService, { provide: ... }]`|`providers:`
|
2015-12-09 07:33:42 -05:00
|
|
|
|
description:
|
2016-09-01 15:06:42 -04:00
|
|
|
|
List of dependency injection providers for this directive and its children.
|