angular/material — pull request #531 by pandaiolo (2014-11-04 00:45:16+00:00)
Title: 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 #473,#474