J
J
John2015-12-29 02:10:22
Angular
John, 2015-12-29 02:10:22

Events when hitting a certain state?

Let's say I have a few main states created with UI Route. Further, my task is to animate the elements contained in it when it hits a certain state. Now I can do it by creating $(document).ready.. in the controller and push all sorts of animations there, and I do it imperatively using the same jQuery .. Question: is it correct to use this approach?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2015-12-29
@miraage

Absolutely wrong.
https://github.com/angular-ui/ui-router/wiki/Frequ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question