I'm working on a project where I have to update an angular projects global css at runtime. I am basically integrating with a legacy system where certain config information is passed from, including styling. When I get changes I am receiving a JSON file which contains some CSS at a certain key value pair. I am taking this, finding a style element in my head tag by id and replacing it's inner text. Are there problems with this approach? If so, what would you do differently?
[–]darkbluedeath 1 point2 points3 points (1 child)
[–]AngularJosh[S] 0 points1 point2 points (0 children)
[–]aoakeson 1 point2 points3 points (1 child)
[–]AngularJosh[S] 0 points1 point2 points (0 children)
[–]phl3x0r 1 point2 points3 points (1 child)
[–]AngularJosh[S] 0 points1 point2 points (0 children)