Catching template load event?

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.

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

Then you could use ui-router state events:


and
view events: