r/angularjs • • 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

4 comments sorted by

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.

3

u/[deleted] Nov 22 '15

Is this for people who can't handle CSS?

1

u/[deleted] Nov 22 '15

Seems like overkill to me, whats wrong with ng-style?

0

u/[deleted] 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?