In this video, I will show you how to add dynamic custom styling to an Angular app. This is something I eg. use for the course portal of Angular Architect Accelerator.
The style is added as:
Notice how the use of
sanitizer.sanitize sanitizes the styling before the style tag is generated, preventing XSS attacks.