ElementRef is obtained with @ViewChild() and the Renderer is obtained through dependency injection. It is a core Angular component.| Parameter | Details | 
|---|---|
| name | type of transition to do | 
| duration | the length of time for the transition to execute | 
This uses ElementRef internally which the Angular team says is a security risk.