I won't dwell on the reason for this (it's required to override some behavior in Angular Material that is causing issues in Safari), but here is what I am attempting to accomplish:
HTML:
<style>
.changeme{
height: 300px;
}
</style>
<div class='changeme'>
Some Text
</div>
My JavaScript code checks the height of the browser window, and I need to dynamically change the height
attribute of .changeme
from my controller.
I CANNOT achieve this using ng-style
, as Angular Material
removes ng-styles from the specific element in question.
Is it feasible to modify a <style>
tag from Angular? Or are there any alternatives to accomplish this?