I have multiple tabs (each has its own scope) and tab change causes new route( using ui-router). the page slide is used in each tab. When i switch tabs, the destroy event on pageSlide removes the 'childElements' which contains my button (which is inside the page-slide directive). The problem is i have no control on when this destroy is called. Sometimes its called after the new tab is created with the button and then the old scope's destroy fires removing the button . If i comment out the removeChild in destroy, then it helps my situation. could this be provided as an option? i.e. dont destroy if option is passed?
Request SME's opinion on how to handle this.