angular - Destroying a bootstrapped angular2 component -
this question has answer here:
- dispose angular 2 app or component 1 answer
i've worked on projects using backbone, jquery, , requirejs , exploring angular2.
i have have existing spa hosts various "widgets" using backbone , have gotten angular2 components running side side.
i can load multiple angular2 components using the bootstrap method after importing using requirejs.
the parent element of angular widgets managed using backbone/jquery.
what best way dispose or destroy of angular2 widgets?
from understand, bootstrap method creates new 'zone'. there way force ondestroy child components , dispose of zone?
after digging source code, bootstrap function returns promise resolves applicationref instance. can call dispose() method on object.
Comments
Post a Comment