This project was generated with Angular CLI version 9.1.0.
@angular/compiler
@angular/router
Not sure
Conditional Routing works on JIT, But not with AOT. However, compiler does not show any warning.
use the following repo https://github.com/yuvalbl/ng-aot-routing-issue
check out app-routing
steps:
- clone repo
npm i
ng build --aot
- from
dist
directory runnpx serve -s
to serve the created build files - open the browser on full screen (more than 768 width) and see
Mobile
is displayed instead ofdesktop
None (probably should show an error if Conditional Routing is not supported in AOT uet
Angular Version:
Angular CLI: 9.1.0
Node: 12.14.1
OS: linux x64
Angular: 9.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.901.0
@angular-devkit/build-angular 0.901.0
@angular-devkit/build-optimizer 0.901.0
@angular-devkit/build-webpack 0.901.0
@angular-devkit/core 9.1.0
@angular-devkit/schematics 9.1.0
@ngtools/webpack 9.1.0
@schematics/angular 9.1.0
@schematics/update 0.901.0
rxjs 6.5.4
typescript 3.8.3
webpack 4.42.0