Having trouble setting gradients using the angular js ng-style directive. I can successfully set normal colors using the code below:
<span ng-style="{'background-color': slidercolor}">works</span>
However, when trying to set a gradient it does not work.
Here is the jsfiddle link for reference:
<span ng-style="{'background-color':'-webkit-gradient(linear, left top, right top, color-stop(0%, 'slidercolor'), color-stop(100%, rgba(125,185,232,0)))'}">didnt work</span>
Furthermore, please advise on which values should be enclosed in quotes and which should not.