css - Multiple attributes in ng-style -



css - Multiple attributes in ng-style -

i need have multiple raw style attributes :

$scope.css = "'width': 'calc(100% - "+$scope.fixedcolumnswidth+"'),'margin-left':'"+ $scope.fixedcolumnswidth+"'"; <div ng-style="{css}">

this not working. works when use

<div style="{{css}}">

but not ie.

ng-style waits object literal, need adjust code to

$scope.css = { width: 'calc(100% -'+$scope.fixedcolumnswidth+')', 'margin-left': $scope.fixedcolumnswidth } <div ng-style="css"></div>

css angularjs ng-style

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -