If you just need a temporary hack, maybe ng-init can help. In the long term 
Rishi Tandon is right, bad design.

Am Mittwoch, 25. März 2015 19:20:23 UTC+1 schrieb Gabriel Ferreira:
>
> Hi guys. I have 4 template HTML files, and both share the same controller. 
> One of the templates has to invoke a function on controller, but the other 
> templates don't. How can i invoke this function on the HTML?
>
> It's something like onload.
>
> Best regards,
> Gabriel.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to