Hi Jan, This is something that you can do with the compile fase. the compiling is done before the controller is initiated, so you can let your compile function put the right controller in place. As a side note, have a look at templatecache <https://docs.angularjs.org/api/ng/service/$templateCache>. that will do the fetching of the templates also, but not over and over again, when the same template is reused.
Is this enough for you? If not don't hesitate to ask, Regards Sander -- 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.
