Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
destroy() {
this.options = null
this.queryparams = null
this.options = new Object()
this.queryparams = new Object()
this.commandSub.unsubscribe()
this.dataSub.unsubscribe()
this.eventSub.unsubscribe()
this.store.dispatch(new StateReset(PageState))
}
ngOnDestroy(): void {
this.store.dispatch(new StateReset(PageBuilderState))
}