V
V
vasIvas2015-09-11 18:07:26
Angular
vasIvas, 2015-09-11 18:07:26

Why doesn't ui-router send events on first login?

If the "$stateChangeStart" event is dispatched, the navigation item is highlighted in a different color.
And everything works and switches, but only after entering. When visiting any url, the event is not sent.
I won't ask "why", because I'm sure there must be another way, which I just missed when reading the help. Is there such a way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-09-11
@vasIvas

stateChangeStart is launched when the state is changed and nothing more. Just process inside the directive and refresh on stateChangeStart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question