Modify DOM elegantly using Angular ElementRef and Render2
This is an example using ElementRef and Render2 to modify CSS style dynamically. import { Component, ElementRef, ViewChild, AfterViewInit, Renderer2 } from ‘@angular/core’; @Component({ selector: ‘my-app’, template: ` <h1>Welcome to…