I won't harp on about the use-case for this (it's needed to override some behaviour in Angular Material which is causing bugs in Safari), but here's what I'm trying to do:
HTML:
<style>
.changeme{
height: 300px;
}
</style>
<div class='changeme'>
Some Text
</div>
My JS code looks at the height of the browser window, and I need to change the height attribute of .changeme dynamically from my controller.
I CANNOT do this via ng-style, as Angular Material strips ng-styles away from the particular element in question.
Is it possible to manipulate a <style> tag from Angular? Or are there any options for achieving this?
<style>with an!importantfor theheightproperty?