Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Canceling from the form and returning to the top level
Message
 
 
À
23/09/2016 08:48:03
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01641209
Message ID:
01641264
Vues:
18
>What do you mean by 'no luck' ? Does it not show the page at all or do you mean that it is still reloading the page? If it's reloading then it may be because you're in Hashbang mode. Snip:
>
>In this mode, $location uses Hashbang URLs in all browsers. Angular also does not intercept and rewrite links in this mode. I.e. links work as expected and also perform full page reloads when other parts of the url than the hash fragment was changed.

Originally it didn't do anything (e.g. path remained the same). Now that code works after I added the following lines into our app.js file:
 app.config(['$locationProvider', function ($locationProvider) {
        $locationProvider.html5Mode(true);
        $locationProvider.hashPrefix('!');
    }]);
Thanks a lot, I'll fix other preferences the same way. It works nicely now. I need to do more tests in other areas to make sure.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform