mardi 5 mai 2015

Execute a function on ANY state reload/page refresh (UI-router)?

I need to call a function when ANY state is reloaded. Essentially, if the user refreshes the browser, I need to call something. Is there any way to do this without modifying EVERY state with $state.reload()?

I CAN put a controller on index.html which contains all the views/states if this would help.

Aucun commentaire:

Enregistrer un commentaire