1

I want to know that is there any way to load and unload SCSS dynamically. The problem is I have two scss named style1.scss and style2.scss. I currently referred style1.scss in my angular.json file. Now I want to load only the style 2.css for a particular module and not style1.scss. Is there any way to achieve this like using conditions in angular.json file or anywhere to load or unload the scss file.

3
  • Are these styles depending on the module at all or do they depend on a certain component? And could you show us what you've already got in your angular.json and which version you're exactly using? Commented Mar 11, 2019 at 9:19
  • "styles": [ "node_modules/bootstrap/dist/css/bootstrap.min.css", "src/styles.scss" ], And the angular version am using is 7 Commented Mar 11, 2019 at 9:24
  • refer to this link: stackoverflow.com/questions/42439172/… Commented Mar 11, 2019 at 9:43

0

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.