Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(upgrade): allow for downgraded components to work with component-…
…router (#50871) In the past, we had an implementation of the "Angular 2" router that also worked with AngularJS. Published as `@angular/router`. We continued to expose that router implementation in G3 and some applications still use it. Now, when upgrading, they are seeing issues where the router throws because it cannot find a route config/ or `$canActivate` on the controller- simply because there is no `controller` function for downgraded components. We can fix this and unblock the update by simply ensuring a controller function is defined. PR Close #50871
- Loading branch information