refactor(directives): directives use declare that they listen to onChange in the annotations

This commit is contained in:
vsavkin
2015-02-06 13:19:47 -08:00
parent ee3f709fbf
commit 9240b09011
7 changed files with 91 additions and 27 deletions

View File

@ -1,4 +1,4 @@
import {Template} from 'angular2/src/core/annotations/annotations';
import {Template, onChange} from 'angular2/src/core/annotations/annotations';
import {OnChange} from 'angular2/src/core/compiler/interfaces';
import {ViewPort} from 'angular2/src/core/compiler/viewport';
import {View} from 'angular2/src/core/compiler/view';
@ -7,6 +7,7 @@ import {ListWrapper} from 'angular2/src/facade/collection';
@Template({
selector: '[foreach][in]',
lifecycle: [onChange],
bind: {
'in': 'iterable[]'
}