R
R
robotwerter2015-05-22 16:41:43
JavaScript
robotwerter, 2015-05-22 16:41:43

How to refresh the page when you go to it?

Please tell me how to use Angular to force the page to always update (redraw the dom) when switching to it from other pages.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim, 2015-05-22
@robotwerter

$rootScope.$on('$stateChangeSuccess', function() {
    $state.go($state.current, {}, {reload: true});
});

_
_ _, 2015-05-22
@AMar4enko

Router standard or ui-router?

D
Dmitry Shinkar, 2015-05-22
@DeadCowsDontMoo

And why is this even necessary? What would some functions work correctly? It's a strange question for me...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question