Re:AngularJS in the Wild: A Survey with 460 Developers
by 6DM on Thursday August 18, 2016 @11:47AM
(#12313408)
I think it will be clearer with an example. So we have an application with a left menu and several links in it, here's an example list:
/Dashboard/WorkLoad
/Accounts/AllPeople
/Automotive/CarGallery
I want to add a few new pages, "/Dashboard/Monitoring", "/Dashboard/Logs". I want this to utilize angular with html5mode enabled. This way they can still bookmark the links and come back, or at least the url won't look weird.
I don't want the old links to be broken, as I add pages with routing enabled it should work. It ends up breaking though because if those other three links don't match my two configured links (Monitoring, Logs), it uses "otherwise" to fallback to the home directory "/". There's no way arround this other than detecting and turning on/off the routing.
I don't know exactly what you mean by "routing module that supports old links". Are you referring to the "LocationStrategy" which differentiates between routes such as /#/some-state vs. /some-state (with <base href="/">)?. Or are you moving a non-SPA application to a SPA application w/angular routing?