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
Post a Comment