fix: flip attr / property bind in directives annotations

Fixes #648

Closes #684
This commit is contained in:
Pawel Kozlowski
2015-02-17 21:55:18 +01:00
parent 709c3ca6b5
commit 56f4e84d45
12 changed files with 36 additions and 36 deletions

View File

@ -68,7 +68,7 @@ Here is a trivial example of a tooltip decorator. The directive will log a toolt
@Decorator({
selector: '[tooltip]', // CSS Selector which triggers the decorator
bind: { // List which properties need to be bound
tooltip: 'text' // - DOM element tooltip property should be
text: 'tooltip' // - DOM element tooltip property should be
}, // mapped to the directive text property.
event: { // List which events need to be mapped.
mouseover: 'show' // - Invoke the show() method every time
@ -180,7 +180,7 @@ Viewport is a directive which can control instantiation of child views which are
@Viewport({
selector: '[if]',
bind: {
'if': 'condition'
'condition': 'if'
}
})
export class If {