Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
Update CHANGELOG and pubspec for 2.2.0.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=140605397
  • Loading branch information
matanlurey committed Nov 30, 2016
1 parent f455cbe commit 655d2b4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
## 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.

**BEFORE**
```dart
class MyComponent {
QueryList<ChildComponent> _childComponents;
MyComponent(@ContentChildren(ChildComponent) this._childComponents);
}
```

**AFTER**
```dart
class MyComponent {
QueryList<ChildComponent> _childComponents;
@ContentChildren(ChildComponent)
set childComponents(QueryList<ChildComponent> childComponents) {
_childComponents = childComponents;
}
}
```

### Bug fixes
* Importing `angular2/reflection.dart` now works properly.

## 2.1.1

### API changes
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: angular2
version: 2.1.1
version: 2.2.0
author: Dart Team <web@dartlang.org>
description: Framework for modern web applications
homepage: 'https://angulardart.org'
Expand Down

0 comments on commit 655d2b4

Please sign in to comment.