TL;DR: When your controller is destroyed, it emits $destroy. You can listen to this event and unbind variables, remove listeners, etc. to avoid leakage or undesired side effects. Demo time.