Hello,
I am using an in-house framework that is responsible of calling back-end
services and loading pages dynamically using jQuery.load.
I want to keep using this framework while at the same time be able to use
Angular in the pages being loaded by this framework. I have found that
after loading the page content into a <div>, I can call angular.bootstrap
and pass that div element. That works perfectly fine but has several
limitations:
- Each page I load is an isolated angular application
- If I define ng-app in my body tag then angular.bootstrap throws an error,
because it can only be bostrapped once per tree.
I think the best approach would be to stop using jQuery.load and use
whatever Angular does when loading content via the ngInclude directive.
That is, I want to modify my framework to load and compile pages using
angular instead of using jQuery. However I cannot just put <div ng-include>
in my HTML because that is not how the framework works: the framework
determines which page to include at runtime.
Is there any Angular API I could use to do that?
Thank you,
Luis.
--
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.