1

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 .

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

3 Comments

Any possibility that could help me in refreshing the page. But, without using window.location.reload(); which i have already tried.
is it possible to use gulp-livereload for change detection in angular 4 application?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.