feat(core): renames Property into Input and Event into Output
BREACKING CHANGE: Before: @Directive({properties: ['one'], events: ['two']}) After: @Directive({inputs: ['one'], outputs: ['two']}) Before: @Component({properties: ['one'], events: ['two']}) After: @Componet({inputs: ['one'], outputs: ['two']}) Before: class A {@Property() one; @Event() two;} After: class A {@Input() one; @Output() two;}
This commit is contained in:
@ -157,7 +157,7 @@ export class ChangeDetectorRef {
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* @Component({selector: 'live-data', properties: ['live']})
|
||||
* @Component({selector: 'live-data', inputs: ['live']})
|
||||
* @View({
|
||||
* template: `Data: {{dataProvider.data}}`
|
||||
* })
|
||||
|
@ -21,7 +21,7 @@ import {BaseException, WrappedException} from "angular2/src/core/facade/exceptio
|
||||
* parentProp = "init";
|
||||
* }
|
||||
*
|
||||
* @Directive({selector: 'child', properties: ['prop']})
|
||||
* @Directive({selector: 'child', inputs: ['prop']})
|
||||
* class Child {
|
||||
* constructor(public parent: Parent) {}
|
||||
*
|
||||
@ -49,7 +49,7 @@ export class ExpressionChangedAfterItHasBeenCheckedException extends BaseExcepti
|
||||
* ### Example ([live demo](http://plnkr.co/edit/2Kywoz?p=preview))
|
||||
*
|
||||
* ```typescript
|
||||
* @Directive({selector: 'child', properties: ['prop']})
|
||||
* @Directive({selector: 'child', inputs: ['prop']})
|
||||
* class Child {
|
||||
* prop;
|
||||
* }
|
||||
|
Reference in New Issue
Block a user