Search code examples
angularjsng-style

AngularJS ng-include function or value binding per property


I would like to do the following:

ng-style="{ 'width': iconWidth(), 'height': height }"

iconWidth being a function and height being a string. I would like to keep the ng-style syntax and not bind the ng-style to an entire object (not ng-style="css".

Thanks for your help.


Solution

  • This issue has been fixed by fixing a digest synchronization problem.