Answer the question
In order to leave comments, you need to log in
Transition without ajax with html5Mode enabled
On some pages I use a different layout, how can I make the main part of the links work through ajax and some work with a page reload? Routing in angular.
Answer the question
In order to leave comments, you need to log in
Set links to a specific class, such as ajax. And check if the link has this class - process via ajax, otherwise - reload the page
I don’t know how it’s right, but such a horror works quite well:
$routeProvider
// ...
.otherwise({redirectTo:function(obj,path){
window.location = path;
}});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question