Update the dom of a component from a service
1. Create a Service with an EventEmitter or Subject You’ll use a Subject here because it’s more versatile than EventEmitter, […]
Update the dom of a component from a service Read More »
1. Create a Service with an EventEmitter or Subject You’ll use a Subject here because it’s more versatile than EventEmitter, […]
Update the dom of a component from a service Read More »
Here’s an example: import { Component, ElementRef, Renderer2, AfterViewInit } from ‘@angular/core’;@Component({ selector: ‘app-my-component’, template: ` <div id=”uniqueId”>This is a
Search the dom for a unique element id and add a class the corresponding element Read More »