This repository was archived by the owner on Sep 16, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed
Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 1+ ## 2.2.0
2+
3+ ### API changes
4+ * Breaking changes
5+ * Using ` @ViewQuery|Children|Content| ` in a constructor is no longer valid.
6+ This caused significant extra code to need to be generated for a case that
7+ is relatively rare. Code can safely be moved into a setter in most cases.
8+
9+ ** BEFORE**
10+ ``` dart
11+ class MyComponent {
12+ QueryList<ChildComponent> _childComponents;
13+
14+ MyComponent(@ContentChildren(ChildComponent) this._childComponents);
15+ }
16+ ```
17+
18+ ** AFTER**
19+ ``` dart
20+ class MyComponent {
21+ QueryList<ChildComponent> _childComponents;
22+
23+ @ContentChildren(ChildComponent)
24+ set childComponents(QueryList<ChildComponent> childComponents) {
25+ _childComponents = childComponents;
26+ }
27+ }
28+ ```
29+
30+ ### Bug fixes
31+ * Importing ` angular2/reflection.dart ` now works properly.
32+
133## 2.1.1
234
335### API changes
Original file line number Diff line number Diff line change 11name : angular2
2- version : 2.1.1
2+ version : 2.2.0
33author :
Dart Team <[email protected] > 44description : Framework for modern web applications
55homepage : ' https://angulardart.org'
You can’t perform that action at this time.
0 commit comments