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:
vsavkin
2015-09-30 20:59:23 -07:00
parent 33593cf8a2
commit adbfd29fd7
89 changed files with 405 additions and 423 deletions

View File

@ -226,12 +226,12 @@ class StaticTreeComponentBase {
get data() { return this._value; }
}
@Component({selector: 'tree', properties: ['data']})
@Component({selector: 'tree', inputs: ['data']})
@View({directives: [], template: '<span>{{data.value}} </span>'})
class StaticTreeComponent0 extends StaticTreeComponentBase {
}
@Component({selector: 'tree', properties: ['data']})
@Component({selector: 'tree', inputs: ['data']})
@View({
directives: [StaticTreeComponent0],
template:
@ -240,7 +240,7 @@ class StaticTreeComponent0 extends StaticTreeComponentBase {
class StaticTreeComponent1 extends StaticTreeComponentBase {
}
@Component({selector: 'tree', properties: ['data']})
@Component({selector: 'tree', inputs: ['data']})
@View({
directives: [StaticTreeComponent1],
template:
@ -250,7 +250,7 @@ class StaticTreeComponent2 extends StaticTreeComponentBase {
data: TreeNode;
}
@Component({selector: 'tree', properties: ['data']})
@Component({selector: 'tree', inputs: ['data']})
@View({
directives: [StaticTreeComponent2],
template:
@ -259,7 +259,7 @@ class StaticTreeComponent2 extends StaticTreeComponentBase {
class StaticTreeComponent3 extends StaticTreeComponentBase {
}
@Component({selector: 'tree', properties: ['data']})
@Component({selector: 'tree', inputs: ['data']})
@View({
directives: [StaticTreeComponent3],
template:
@ -268,7 +268,7 @@ class StaticTreeComponent3 extends StaticTreeComponentBase {
class StaticTreeComponent4 extends StaticTreeComponentBase {
}
@Component({selector: 'tree', properties: ['data']})
@Component({selector: 'tree', inputs: ['data']})
@View({
directives: [StaticTreeComponent4],
template:
@ -277,7 +277,7 @@ class StaticTreeComponent4 extends StaticTreeComponentBase {
class StaticTreeComponent5 extends StaticTreeComponentBase {
}
@Component({selector: 'tree', properties: ['data']})
@Component({selector: 'tree', inputs: ['data']})
@View({
directives: [StaticTreeComponent5],
template:
@ -286,7 +286,7 @@ class StaticTreeComponent5 extends StaticTreeComponentBase {
class StaticTreeComponent6 extends StaticTreeComponentBase {
}
@Component({selector: 'tree', properties: ['data']})
@Component({selector: 'tree', inputs: ['data']})
@View({
directives: [StaticTreeComponent6],
template:
@ -295,7 +295,7 @@ class StaticTreeComponent6 extends StaticTreeComponentBase {
class StaticTreeComponent7 extends StaticTreeComponentBase {
}
@Component({selector: 'tree', properties: ['data']})
@Component({selector: 'tree', inputs: ['data']})
@View({
directives: [StaticTreeComponent7],
template:
@ -304,7 +304,7 @@ class StaticTreeComponent7 extends StaticTreeComponentBase {
class StaticTreeComponent8 extends StaticTreeComponentBase {
}
@Component({selector: 'tree', properties: ['data']})
@Component({selector: 'tree', inputs: ['data']})
@View({
directives: [StaticTreeComponent8],
template: