What does this line do? @HostBinding('[class.valid]') isValid;
Why would you use renderer methods instead of using native element methods?
What is the point of calling renderer.invokeElementMethod(rendererEl, methodName)?
How would you control size of an element on resize of the window in a component?
``
@HostListener(‘window:resize’, [‘$event’]) onResize(event: any) { this.calculateBodyHeight(); }
What would be a good use for NgZone service?
How would you protect a component being activated through the router?
How would you insert an embedded view from a prepared TemplateRef?
` viewContainerRef.
createEmbeddedView(templateRef);`