Catching template load event?


#1

How to do something when template gets loaded ?

Here is what I want to do. I have a menu item in side menu (aside), whenever that menu item is taped and respective templates is made visible, I want to perform some checks and get data from server.

Kindly share code sample, if possible.


#2

Are you changing states with the click/tap on a sidemenu entry?

Then you could use ui-router state events:


and
view events: