<div style="width: 50px !important">
I am looking for a way to dynamically set the pixel number using angularjs. The final width should be calculated based on a base pixel width as well. How can I make this happen?
<div ng-style="{{width: (model.number * 30)px !important}}">
Although this approach does not work, it demonstrates my desired outcome. I prefer to achieve this without the need to introduce a controller function.