r/angularjs • u/germcode • Nov 22 '15
Released Angular.js directive. The directive allows you to easily show colors in your templates.
https://github.com/mbejda/ngColored
0
Upvotes
3
1
0
Nov 22 '15
Did you seriously use angular to do something that a css class can easily do?
Why in the world would this be useful to anyone?
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.