Reputation: 188
In my project once the project gets bootstrap's style.css rules gets attached into style tag inside the head tag of index.html file. What i am doing is once the project gets bootstrapped i am changing the some css rule properties programatically using node.js. But, updated css properties not getting applied in DOM. Please help me to find a way for this .
Upvotes: 1
Views: 71
Reputation: 12996
Well, the global styles are loaded once and if you have an update on the style css you should refresh the page.
But updating the global css is not a good practice. Angular provides you easily manipulation of your DOM with typescript.
Plz refer this link Angular4 - changing css class dynamically - which is better?
Here is a github issue with the same question like you have https://github.com/gdi2290/angular-starter/issues/1457
Upvotes: 1