Is it possible to have an element hidden by default (so that it does not show if JavaScript is off) and have AngularJS override the style to display it?
I have a function on the scope that should be returning an overriding style to display the element:
$scope.style = function() {
return { "display": "block!important" };
}
The element itself has the original CSS hiding it as well as an ng-style directive:
<h4 class="original" ng-style="style()">
The CSS hides the element at first:
.original {
display: none;
}
There is a non-working demo here.