My angular project is reading from a library that contains this code is a class:
class MyClass extends EventEmitter {
constructor () {
// add the element to the container
this.loadingElement = document.createElement('div');
this.loadingElement.className = "loading"
this.loadingElement.innerText = 'Now Loading...';
}
}
In my app.component.css I have this:
#componentDivId .loading {
position: absolute;
top: 50%;
left: 50%;
}
This css is in app.component.css
How can I change this so it reads the css?