This repository was archived by the owner on Sep 16, 2022. It is now read-only.
2.2.0
2.2.0
API changes
- Breaking changes
- Using
@ViewQuery|Children|Content|in a constructor is no longer valid.
This caused significant extra code to need to be generated for a case that
is relatively rare. Code can safely be moved into a setter in most cases.
- Using
BEFORE
class MyComponent {
QueryList<ChildComponent> _childComponents;
MyComponent(@ContentChildren(ChildComponent) this._childComponents);
}AFTER
class MyComponent {
QueryList<ChildComponent> _childComponents;
@ContentChildren(ChildComponent)
set childComponents(QueryList<ChildComponent> childComponents) {
_childComponents = childComponents;
}
}Bug fixes
- Importing
angular2/reflection.dartnow works properly.