Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sidenav): Clean registry when element is destroyed
Element registry is currently kept even after element is removed from DOM. Appart from the memory leak, it also disable future components with same handle from beeing pulled from the registry, for example when users navigate away/back to a page, DOM is reloaded but new component does not work anymore (old registry component is called instead of the new one) @ajoslin reported in referenced issue that registry component will be refactored. Until then, this patch should fix the bug on the component side. Closes angular#473,angular#474
- Loading branch information