Reputation: 21
I am upgrading to angular 4. I am currently using ui-router with states for navigation. I have a mix of angular 1.x and all new development is in angular 4. I was hoping that i could map new routes to old using RouterModule.forRoot(appRoutes, {useHash: true, enableTracing: true})
How can I navigate from a new angular 4 component to an old angular 1.x page?
Upvotes: 0
Views: 921
Reputation: 60548
There is a library called ngUpgrade
that is built for this purpose.
You can find out more about it here:
https://angular.io/docs/ts/latest/guide/upgrade.html
and here
https://blog.thoughtram.io/angular/2015/10/24/upgrading-apps-to-angular-2-using-ngupgrade.html
Upvotes: 0