fix: flip attr / property bind in directives annotations
Fixes #648 Closes #684
This commit is contained in:
@ -288,7 +288,7 @@ export function main() {
|
||||
|
||||
@Decorator({
|
||||
selector: '[my-dir]',
|
||||
bind: {'elprop':'dirProp'}
|
||||
bind: {'dirProp':'elprop'}
|
||||
})
|
||||
class MyDir {
|
||||
dirProp:string;
|
||||
|
@ -448,7 +448,7 @@ class SomeDecoratorDirective {
|
||||
}
|
||||
|
||||
@Decorator({
|
||||
bind: {'boundprop1': 'decorProp'}
|
||||
bind: {'decorProp': 'boundprop1'}
|
||||
})
|
||||
class SomeDecoratorDirectiveWithBinding {
|
||||
decorProp;
|
||||
@ -461,8 +461,8 @@ class SomeDecoratorDirectiveWithBinding {
|
||||
|
||||
@Decorator({
|
||||
bind: {
|
||||
'boundprop1': 'decorProp',
|
||||
'boundprop2': 'decorProp2'
|
||||
'decorProp': 'boundprop1',
|
||||
'decorProp2': 'boundprop2'
|
||||
}
|
||||
})
|
||||
class SomeDecoratorDirectiveWith2Bindings {
|
||||
@ -479,7 +479,7 @@ class SomeViewportDirective {
|
||||
}
|
||||
|
||||
@Viewport({
|
||||
bind: {'boundprop2': 'templProp'}
|
||||
bind: {'templProp': 'boundprop2'}
|
||||
})
|
||||
class SomeViewportDirectiveWithBinding {
|
||||
templProp;
|
||||
@ -492,7 +492,7 @@ class SomeViewportDirectiveWithBinding {
|
||||
class SomeComponentDirective {
|
||||
}
|
||||
|
||||
@Component({bind: {'boundprop3': 'compProp'}})
|
||||
@Component({bind: {'compProp': 'boundprop3'}})
|
||||
class SomeComponentDirectiveWithBinding {
|
||||
compProp;
|
||||
constructor() {
|
||||
|
Reference in New Issue
Block a user