Hi Arvind,
If an angular component is taken out of the dom, it gets destroyed, and it should clean up after itself. The code that is loaded for that module stay's in memory, and (if done correctly) gets reused on iterated use. You can check the destroy being called by logging out some text in the ngOnDestroy life-cycle hook. As far as I know, it is not possible anymore to create components that are not part of a ngModule. However, the router is not the only way to lazy-load code, you can use your code to do that, and you can incorporate that into your dijit's. Probably all this wrapping is a bad idea. Perhaps you can consider writing a Component that mimics an dijit, so you can just use angular alongside dojo, instead of wrapped into each other? Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
