I work on an ASP.NET MVC app which originally used traditional navigation (HTTP GETs and POSTs) and no AJAX/Fetch functionality. Over time, we have brought in AngularJS to take advantage of two-way binding and other UI improvements, but each page is still its own independent app/module. That is, we don't use AngularJS routing, but instead, when a page loads, it's a traditional GET request. This means angular.js loads and bootstraps each time, with the page itself being an isolated module and controller.
We'd like to start using AngularJS's routing to make certain sections of our app act as SPAs, with the eventual goal of making the entire site one SPA routed with AngularJS. With the size of the app and our small team, it isn't feasible to do it all at once, so we would need to do it gradually.
Is it possible to have certain URLs use AngularJS's routing, but have others do a complete page load (GET)? For example:
+------------------------------+-------------------------------+-------------------+
| Current URL | URL to navigate to | Navigation type |
+------------------------------+-------------------------------+-------------------+
| site.com/employee/edit/42 | site.com/employee/contacts/42 | AngularJS routing |
| site.com/employee/edit/42 | site.com/branch/settings/123 | Traditional GET |
| site.com/branch/settings/123 | site.com/employee/edit/42 | Traditional GET |
+------------------------------+-------------------------------+-------------------+
Pages within the same "section" of the software (in this case, /employee/*) would be part of the same AngularJS module, and navigating both to and from a page within that module would use AngularJS routing. All other navigation would fall back on regular GET requests.
html5Modebut simply use the hash for creating angularjs routes. in your example i would use for any angula routesite.com/#employee/edit/42and all other requests should remain the same - once you transposed all your code you can think about$locationProvider.html5Mode(true)but that would be my last concern