Thank you Sander, your example helped me figure out my problem.
We dont use ng-app to bootstrap, rather within the main module contains:
angular.element(document).ready(function() {
angular.bootstrap(document, ['myParentApp']);
Of course if I try to add a similar line to the child app
angular.element(document).ready(function() {
angular.bootstrap(document, ['newChildApp']);
I get an error about document already being bootstrapped. If I add the
child app to the main module, things do work... but ideally i would like
modules self contained , right?
// Works, but not ideal...
angular.element(document).ready(function() {
angular.bootstrap(document, ['myParentApp', 'newChildApp' ]);
On Friday, October 9, 2015 at 5:31:37 AM UTC-7, Sander Elias wrote:
>
> Hi Doug,
>
> Here is a working sample
> <http://plnkr.co/edit/VUbLd4IeYOllKCEujxLG?p=preview>.
>
> Does that makes it clear enough?
> 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.