I have two ng-style objects in my controller.
$scope.leftpadding = {
paddingLeft : '7px'
}
$scope.toppadding = {
paddingTop : '7px'
}
I want to use both these objects in ng-style like
<h5 ng-style="toppadding leftpadding">
Is not working. as neither of the objects are being applied in style.
It can't be like
$scope.style = {
paddingLeft : '7px',
paddingTop : '7px'
}
Is there any way to achieve this?