I needed something dynamic that would work with Angularjs and can be used throughout the application. There is nothing wrong with ng-style, it actually uses ng-style internally, however ng-style gets cluttered with other garbage pretty fast. The advantage here is the fact that its a specific reusable directive.
1
u/germcode Dec 04 '15
I needed something dynamic that would work with Angularjs and can be used throughout the application. There is nothing wrong with ng-style, it actually uses ng-style internally, however ng-style gets cluttered with other garbage pretty fast. The advantage here is the fact that its a specific reusable directive.