V
V
Vitaly Kuznetsov2013-07-24 17:59:45
Angular
Vitaly Kuznetsov, 2013-07-24 17:59:45

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

3 answer(s)
M
malyshev, 2013-07-30
@BbFlaMe

You can just add the link target="_self"

P
Petrusha Ukropov, 2013-07-24
@artishok

Set links to a specific class, such as ajax. And check if the link has this class - process via ajax, otherwise - reload the page

D
Denis Pushkarev, 2013-07-24
@rock

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 question

Ask a Question

731 491 924 answers to any question