Hi Sander, 

   Thanks for your suggestions,
  
   In  fact  what I am trying to do is have some kind of components which I 
can add and remove from the dom dynamically. 

   Each component is a module (it has its own controller and directive). 

  So once the application starts,  I will load my component and insert its 
directive inside my application document, and call bootstrap(document, 
[myCoponentModule]);

   This works fine but I can only use  bootstrap one time , angular throws 
an exception if I try to use it another time. 

   So  I wonder If I can tell Angular To allow me to use bootsrap many 
times ? 


  I know That angular is declarative syntaxe based , but in my case I 
really need to compile dynamically a module and add it to my main  module,

 Thank !
 

Le mercredi 11 juin 2014 13:51:33 UTC+2, Sander Elias a écrit :
>
> Hi Maxim,
>
> Have a look at the $compile service.
> But usually you don't need anything outside angular to add parts to the 
> page. I think you might want to look at ng-include too.
> usually one does not need to compile once angular is bootstrapped!
>
> 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.

Reply via email to