0

I am trying to add custom generated CSS (built from access to a database) and have it appear in the page, using Angular 4.

So far I have tried creating a component and adding it to other components (HTML files) but it appears to not be showing anything on the page, nor is it changing anything. I have also looked into adding additional CSS to each component but that will be a management nightmare for changes.

I know I could create multiple themes, or just add another class to a HTML tag. There are no themes in the system I am building and we need to have it so the user can define the styling, using any color, etc of their choosing.

Any suggestions would be greatly appreciated. Thank you.

2
  • where is the custom generated css stored? if you're using angular-cli, why not pack it into a css file and list it in styles section at .angular-cli.config? Commented Jan 23, 2018 at 13:36
  • Possible duplicate of Create css class for whole document with angular Commented Jan 23, 2018 at 13:41

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.