setRoot Component destroy

Hi,

Seems that navCtrl.setRoot() destroy the view but not the controller when the page change?

I probably can use the ionViewDidLeave() to destroy manually variable and unsubscribe observable => but is there a automatic method to destroy all the Class variable and unsubscribe observable on a SetRoot()?