fix: flip attr / property bind in directives annotations
Fixes #648 Closes #684
This commit is contained in:
2
modules/angular2/src/directives/foreach.js
vendored
2
modules/angular2/src/directives/foreach.js
vendored
@ -7,7 +7,7 @@ import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
@Viewport({
|
||||
selector: '[foreach][in]',
|
||||
bind: {
|
||||
'in': 'iterableChanges[]'
|
||||
'iterableChanges[]': 'in'
|
||||
}
|
||||
})
|
||||
export class Foreach {
|
||||
|
2
modules/angular2/src/directives/if.js
vendored
2
modules/angular2/src/directives/if.js
vendored
@ -5,7 +5,7 @@ import {isBlank} from 'angular2/src/facade/lang';
|
||||
@Viewport({
|
||||
selector: '[if]',
|
||||
bind: {
|
||||
'if': 'condition'
|
||||
'condition': 'if'
|
||||
}
|
||||
})
|
||||
export class If {
|
||||
|
4
modules/angular2/src/directives/switch.js
vendored
4
modules/angular2/src/directives/switch.js
vendored
@ -33,7 +33,7 @@ import {Parent} from 'angular2/src/core/annotations/visibility';
|
||||
@Decorator({
|
||||
selector: '[switch]',
|
||||
bind: {
|
||||
'switch': 'value'
|
||||
'value': 'switch'
|
||||
}
|
||||
})
|
||||
export class Switch {
|
||||
@ -144,7 +144,7 @@ export class Switch {
|
||||
@Viewport({
|
||||
selector: '[switch-when]',
|
||||
bind: {
|
||||
'switch-when' : 'when'
|
||||
'when' : 'switch-when'
|
||||
}
|
||||
})
|
||||
export class SwitchWhen {
|
||||
|
Reference in New Issue
Block a user