|
| 1 | +# 6.0.0 (2019-11-12) |
| 2 | +[Compare `@uirouter/angular` versions 5.0.0 and 6.0.0](https://github.com/ui-router/angular/compare/5.0.0...6.0.0) |
| 3 | + |
| 4 | +This release supports Angular 9 and removes the dependency on `@angular/router` |
| 5 | +There are some *BREAKING CHANGES*, see below. |
| 6 | + |
| 7 | +### Bug Fixes |
| 8 | + |
| 9 | +* **ivy:** Inject host UISref separately to account for behavior change in [@ContentChildren](https://github.com/ContentChildren) ([ebd2e40](https://github.com/ui-router/angular/commit/ebd2e40)), closes [/github.com/angular/angular/issues/8277#issuecomment-323678013](https://github.com//github.com/angular/angular/issues/8277/issues/issuecomment-323678013) |
| 10 | +* fix(angular8): Add static: true to ViewChild |
| 11 | +* fix(lazyLoad): Remove dependency on angular/router in favor of using ivy |
| 12 | +Ivy supports lazy loading of modules without depending on the ROUTES token from angular/router. |
| 13 | + |
| 14 | +### Features |
| 15 | + |
| 16 | +* **lazyLoad:** Remove NgModuleToLoad type (string based lazy module loading) ([2f1506c](https://github.com/ui-router/angular/commit/2f1506c)) |
| 17 | +* Ivy support (#674) ([00e9d6a](https://github.com/ui-router/angular/commit/00e9d6a)), closes [#674](https://github.com/ui-router/angular/issues/674) |
| 18 | + |
| 19 | + |
| 20 | +### BREAKING CHANGES |
| 21 | + |
| 22 | +#### UIRouter for Angular v6.0.0 now requires Angular 8 or higher |
| 23 | + |
| 24 | +If you are not yet on Angular 8, please use `@uirouter/angular` v5.x |
| 25 | + |
| 26 | +#### `@uirouter/core` and `@uirouter/rx` packages are now `peerDependencies`. |
| 27 | + |
| 28 | +You will need to explicitly install the correct versions of `@uirouter/core` and `@uirouter/rx` into your project. |
| 29 | + |
| 30 | +before: |
| 31 | + |
| 32 | +``` |
| 33 | +dependencies: { |
| 34 | + "@uirouter/angular": "5.0.0" |
| 35 | +} |
| 36 | +``` |
| 37 | + |
| 38 | +after (example -- versions will vary): |
| 39 | +``` |
| 40 | +dependencies: { |
| 41 | + "@uirouter/angular": "6.0.0" |
| 42 | + "@uirouter/core": "6.0.1", |
| 43 | + "@uirouter/rx": "0.6.0", |
| 44 | +} |
| 45 | +``` |
| 46 | + |
| 47 | +Or, use this command to automatically install peerDependencies: |
| 48 | + |
| 49 | + |
| 50 | +``` |
| 51 | +npx check-peer-dependencies --install |
| 52 | +``` |
| 53 | + |
| 54 | +#### Removed string based lazy module loading via loadChildren |
| 55 | + |
| 56 | +Previously, we supported `loadChildren: './lazymodule/lazy.module.ts#LazyModule'` |
| 57 | + |
| 58 | +This lazy load mechanism is deprecated in Angular 8 in favor of: |
| 59 | +`loadChildren: import('./lazymodule/lazy.module).then(x => x.LazyModule)` |
| 60 | + |
| 61 | +Migrate your `loadChildren`(s) to the `import()` style. |
| 62 | + |
1 | 63 | # 5.0.0 (2019-10-02)
|
2 | 64 | [Compare `@uirouter/angular` versions 4.0.0 and 5.0.0](https://github.com/ui-router/angular/compare/4.0.0...5.0.0)
|
3 | 65 |
|
|
0 commit comments