|
| 1 | +<a name="6.0.0-beta.5"></a> |
| 2 | +# [6.0.0-beta.5](https://github.com/angular/angular/compare/6.0.0-beta.4...6.0.0-beta.5) (2018-02-22) |
| 3 | + |
| 4 | +### Bug Fixes |
| 5 | + |
| 6 | +* **animations:** report correct totalTime value even during noOp animations ([#22225](https://github.com/angular/angular/issues/22225)) ([e1bf067](https://github.com/angular/angular/commit/e1bf067)) |
| 7 | +* **common:** correct mapping of Observable methods ([#20518](https://github.com/angular/angular/issues/20518)) ([2639b4b](https://github.com/angular/angular/commit/2639b4b)), closes [#20516](https://github.com/angular/angular/issues/20516) |
| 8 | +* **common:** then and else template might be set to null ([#22298](https://github.com/angular/angular/issues/22298)) ([8115edc](https://github.com/angular/angular/commit/8115edc)) |
| 9 | +* **compiler-cli:** add missing entry point to package, update tsickle ([#22295](https://github.com/angular/angular/issues/22295)) ([28ac244](https://github.com/angular/angular/commit/28ac244)) |
| 10 | +* **core:** properly handle function without prototype in reflector ([#22284](https://github.com/angular/angular/issues/22284)) ([a7ebf5a](https://github.com/angular/angular/commit/a7ebf5a)), closes [#19978](https://github.com/angular/angular/issues/19978) |
| 11 | +* **core:** require factory to be provided for shakeable InjectionToken ([#22207](https://github.com/angular/angular/issues/22207)) ([f755db7](https://github.com/angular/angular/commit/f755db7)), closes [#22205](https://github.com/angular/angular/issues/22205) |
| 12 | +* **forms:** set state before emitting a value from ngModelChange ([#21514](https://github.com/angular/angular/issues/21514)) ([3e6a86f](https://github.com/angular/angular/commit/3e6a86f)), closes [#21513](https://github.com/angular/angular/issues/21513) |
| 13 | +* **ivy:** pureFunction8 should update the right bindings ([#22313](https://github.com/angular/angular/issues/22313)) ([ee60bb5](https://github.com/angular/angular/commit/ee60bb5)) |
| 14 | +* **ivy:** update master with renamings ([#22268](https://github.com/angular/angular/issues/22268)) ([a8b5465](https://github.com/angular/angular/commit/a8b5465)) |
| 15 | +* **core:** set preserveWhitespaces to false by default ([#22046](https://github.com/angular/angular/issues/22046)) ([f1a0632](https://github.com/angular/angular/commit/f1a0632)), closes [#22027](https://github.com/angular/angular/issues/22027) |
| 16 | + |
| 17 | +### Features |
| 18 | + |
| 19 | +* **common:** better error message when non-template element used in NgIf ([#22274](https://github.com/angular/angular/issues/22274)) ([67cf11d](https://github.com/angular/angular/commit/67cf11d)), closes [#16410](https://github.com/angular/angular/issues/16410) |
| 20 | +* **compiler-cli:** Check unvalidated combination of ngc and TypeScript ([#22293](https://github.com/angular/angular/issues/22293)) ([3ceee99](https://github.com/angular/angular/commit/3ceee99)), closes [#20669](https://github.com/angular/angular/issues/20669) |
| 21 | +* **core:** support metadata reflection for native class types ([#22356](https://github.com/angular/angular/issues/22356)) ([5c89d6b](https://github.com/angular/angular/commit/5c89d6b)), closes [#21731](https://github.com/angular/angular/issues/21731) |
| 22 | +* **ivy:** add pureFunction0 instruction ([#22214](https://github.com/angular/angular/issues/22214)) ([f693be3](https://github.com/angular/angular/commit/f693be3)) |
| 23 | +* allow direct scoping of @Injectables to the root injector ([#22185](https://github.com/angular/angular/issues/22185)) ([7ac34e4](https://github.com/angular/angular/commit/7ac34e4)) |
| 24 | +* **ivy:** generate pipe references and definitions ([#22034](https://github.com/angular/angular/issues/22034)) ([99909bb](https://github.com/angular/angular/commit/99909bb)) |
| 25 | +* **ivy:** support host attributes ([#22213](https://github.com/angular/angular/issues/22213)) ([49082d7](https://github.com/angular/angular/commit/49082d7)) |
| 26 | +* **platform-browser:** do not throw error when Hammer.js not loaded ([#22257](https://github.com/angular/angular/issues/22257)) ([991300b](https://github.com/angular/angular/commit/991300b)), closes [#16992](https://github.com/angular/angular/issues/16992) |
| 27 | +* **platform-browser:** fix [#19604](https://github.com/angular/angular/issues/19604), can config hammerOptions ([#21979](https://github.com/angular/angular/issues/21979)) ([1d571b2](https://github.com/angular/angular/commit/1d571b2)) |
| 28 | + |
| 29 | +### BREAKING CHANGES |
| 30 | + |
| 31 | +* **animations:** When animation is triggered within a disabled zone, the |
| 32 | +associated event (which an instance of AnimationEvent) will no longer |
| 33 | +report the totalTime as 0 (it will emit the actual time of the |
| 34 | +animation). To detect if an animation event is reporting a disabled |
| 35 | +animation then the `event.disabled` property can be used instead. |
| 36 | + |
| 37 | +* **forms:** ngModelChange is now emitted after the value/validity is updated on its control. |
| 38 | + |
| 39 | +Previously, ngModelChange was emitted before its underlying control was updated. |
| 40 | +This was fine if you passed through the value directly through the $event keyword, e.g. |
| 41 | + |
| 42 | +``` |
| 43 | +<input [(ngModel)]="name" (ngModelChange)="onChange($event)"> |
| 44 | + |
| 45 | +onChange(value) { |
| 46 | + console.log(value); // would log updated value |
| 47 | +} |
| 48 | +``` |
| 49 | + |
| 50 | +However, if you had a handler for the ngModelChange event that checked the value through the control, |
| 51 | +you would get the old value rather than the updated value. e.g: |
| 52 | + |
| 53 | +``` |
| 54 | +<input #modelDir="ngModel" [(ngModel)]="name" (ngModelChange)="onChange(modelDir)"> |
| 55 | + |
| 56 | +onChange(ngModel: NgModel) { |
| 57 | + console.log(ngModel.value); // would log old value, not updated value |
| 58 | +} |
| 59 | +``` |
| 60 | + |
| 61 | +Now the value and validity will be updated before the ngModelChange event is emitted, |
| 62 | +so the same setup will log the updated value. |
| 63 | + |
| 64 | +``` |
| 65 | +onChange(ngModel: NgModel) { |
| 66 | + console.log(ngModel.value); // will log updated value |
| 67 | +} |
| 68 | +``` |
| 69 | + |
| 70 | +We think this order will be less confusing when the control is checked directly. |
| 71 | +You will only need to update your app if it has relied on this bug to keep track of the old control value. |
| 72 | +If that is the case, you should be able to track the old value directly by saving it on your component. |
| 73 | + |
| 74 | +<a name="5.2.6"></a> |
| 75 | +## [5.2.6](https://github.com/angular/angular/compare/5.2.5...5.2.6) (2018-02-22) |
| 76 | + |
| 77 | +### Bug Fixes |
| 78 | + |
| 79 | +* **common:** correct mapping of Observable methods ([#20518](https://github.com/angular/angular/issues/20518)) ([ce5e8fa](https://github.com/angular/angular/commit/ce5e8fa)), closes [#20516](https://github.com/angular/angular/issues/20516) |
| 80 | +* **common:** then and else template might be set to null ([#22298](https://github.com/angular/angular/issues/22298)) ([af6a056](https://github.com/angular/angular/commit/af6a056)) |
| 81 | +* **compiler-cli:** add missing entry point to package, update tsickle ([#22295](https://github.com/angular/angular/issues/22295)) ([c5418c7](https://github.com/angular/angular/commit/c5418c7)) |
| 82 | +* **core:** properly handle function without prototype in reflector ([#22284](https://github.com/angular/angular/issues/22284)) ([5ec38f2](https://github.com/angular/angular/commit/5ec38f2)), closes [#19978](https://github.com/angular/angular/issues/19978) |
| 83 | +* **core:** support metadata reflection for native class types ([#22356](https://github.com/angular/angular/issues/22356)) ([ee91de9](https://github.com/angular/angular/commit/ee91de9)), closes [#21731](https://github.com/angular/angular/issues/21731) |
| 84 | + |
1 | 85 | <a name="6.0.0-beta.4"></a> |
2 | 86 | # [6.0.0-beta.4](https://github.com/angular/angular/compare/6.0.0-beta.3...6.0.0-beta.4) (2018-02-14) |
3 | 87 |
|
4 | | - |
5 | 88 | ### Bug Fixes |
6 | 89 |
|
7 | 90 | * **bazel:** allow TS to read ambient typings ([#21876](https://github.com/angular/angular/issues/21876)) ([b081dfe](https://github.com/angular/angular/commit/b081dfe)), closes [#21872](https://github.com/angular/angular/issues/21872) |
|
28 | 111 | * **forms:** multiple validators for array method ([#20766](https://github.com/angular/angular/issues/20766)) ([941e88f](https://github.com/angular/angular/commit/941e88f)), closes [#20665](https://github.com/angular/angular/issues/20665) |
29 | 112 | * change @Injectable() to support tree-shakeable tokens ([#22005](https://github.com/angular/angular/issues/22005)) ([235a235](https://github.com/angular/angular/commit/235a235)) |
30 | 113 |
|
31 | | - |
32 | | - |
33 | 114 | <a name="5.2.5"></a> |
34 | 115 | ## [5.2.5](https://github.com/angular/angular/compare/5.2.4...5.2.5) (2018-02-14) |
35 | 116 |
|
36 | | - |
37 | 117 | ### Bug Fixes |
38 | 118 |
|
39 | 119 | * **aio:** update Firebase redirects and SW routes ([#21763](https://github.com/angular/angular/pull/21763)) ([#22104](https://github.com/angular/angular/pull/22104)) ([15ff7ba](https://github.com/angular/angular/commit/15ff7ba)), closes [#21377](https://github.com/angular/angular/issues/21377) |
|
48 | 128 | * **language-service:** correct instructions to install the language service ([#22000](https://github.com/angular/angular/issues/22000)) ([0b23573](https://github.com/angular/angular/commit/0b23573)) |
49 | 129 | * **platform-browser:** support 0/false/null values in transfer_state ([#22179](https://github.com/angular/angular/issues/22179)) ([da6ab91](https://github.com/angular/angular/commit/da6ab91)) |
50 | 130 |
|
51 | | - |
52 | | - |
53 | 131 | <a name="6.0.0-beta.3"></a> |
54 | 132 | # [6.0.0-beta.3](https://github.com/angular/angular/compare/6.0.0-beta.2...6.0.0-beta.3) (2018-02-07) |
55 | 133 |
|
56 | | - |
57 | 134 | ### Bug Fixes |
58 | 135 |
|
59 | 136 | * **common:** don't convert null to a string when flushing a mock request ([#21417](https://github.com/angular/angular/issues/21417)) ([8b14488](https://github.com/angular/angular/commit/8b14488)), closes [#20744](https://github.com/angular/angular/issues/20744) |
|
0 commit comments