Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I dare to suggest that you are trying to go the wrong way.
Describe the task itself.
The question is worded very vaguely. I don't quite understand what is required either.
Turn on telepathy. You want the template to have some function name that will run when this template is loaded, right?
Do you want to run the function when the page finishes loading, or when the template finishes loading, or is it irrelevant? I would like specifics, tk. I see several solutions.
For example
But as mentioned above, you probably want to do something wrong.
If you are using ui-router, then you can execute code on the $stateChangeSuccess event
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question