(docs) decorator events typo?
Ok I'm not sure (trying to understand angular2) but according to what i can see. Shouldn't the decorator event property be events. Please correct me if I'm wrong :p
This commit is contained in:
parent
46b03a524e
commit
6fe294ff2b
|
@ -135,10 +135,10 @@ export class Directive {
|
||||||
/**
|
/**
|
||||||
* Specifies which DOM events the directive listens to and what the action should be.
|
* Specifies which DOM events the directive listens to and what the action should be.
|
||||||
*
|
*
|
||||||
* The `event` property defines a set of `event` to `method` key-value pairs:
|
* The `events` property defines a set of `event` to `method` key-value pairs:
|
||||||
*
|
*
|
||||||
* - `event` specifies the DOM event that the directive listens to.
|
* - `event1` specifies the DOM event that the directive listens to.
|
||||||
* - `onMethod` specifies the method to execute when the event occurs.
|
* - `onMethod1` specifies the method to execute when the event occurs.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* ## Syntax
|
* ## Syntax
|
||||||
|
@ -146,7 +146,7 @@ export class Directive {
|
||||||
* ```
|
* ```
|
||||||
* @Directive({
|
* @Directive({
|
||||||
* events: {
|
* events: {
|
||||||
* 'event1': 'onMethod',
|
* 'event1': 'onMethod1',
|
||||||
* ...
|
* ...
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
|
@ -157,7 +157,7 @@ export class Directive {
|
||||||
* ```
|
* ```
|
||||||
* @Decorator({
|
* @Decorator({
|
||||||
* selector: 'input',
|
* selector: 'input',
|
||||||
* event: {
|
* events: {
|
||||||
* 'change': 'onChange'
|
* 'change': 'onChange'
|
||||||
* }
|
* }
|
||||||
* })
|
* })
|
||||||
|
|
Loading…
Reference in New Issue