简体   繁体   中英

Which router to use in AngularJS 1.5

I am developing an AngularJS app on its 1.5 version, but i am confused about to use which routing component to use ( ngComponentRouter or ui-router ).

As, they are saying that ngComponentRouter has been depreated. And, my concern is that i can easily migrate my AngularJS app from 1.5 to 2.0 in near future.

Thanks in advance

You should go for ui-router as it is supported in angular2 also.

http://angular-ui.github.io/ui-router/1.0.0-alpha.3/modules/ng2.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM