angular2: Fix typings for decorators

This commit is contained in:
Alex Eagle
2015-06-05 21:54:14 -07:00
parent 8c7444882a
commit 9d6d25287e
2 changed files with 135 additions and 850 deletions

View File

@@ -21,6 +21,16 @@ Cmp.annotations = [
ng.View({
template: '{{greeting}} world!',
directives: [ng.NgFor, ng.NgIf]
}),
ng.Directive({
selector: '[tooltip]',
properties: [
'text: tooltip'
],
hostListeners: {
'onmouseenter': 'onMouseEnter()',
'onmouseleave': 'onMouseLeave()'
}
})
];