Protected
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
subscribes an observable that is internally added to the subscription manager and destroyed automatically on ngDestroy
Optional
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.