I'm using your awesome icon set in my angular2/ionic2 application where I have to list all github languages and your repo fits perfectly, but I want to have a fallback when the app can't find an icon. In this case I want to display the devicons-code icon as a fallback.
My span looks like the following:
<span class="no-margin devicons devicons-{{item.icon}} devicons-code"></span>
Where {{item.icon}} is substituted during compile by the name of an icon:
So both class are present, but every time I get the devicons-code icon.
I needed to change the CSS file in order to put the .devicons-code class as first (before .devicons-git) in order to be overwritten if another existing language exists:
I think that could resolve a problem for a lot of people using angular.
Bye!!
Gianmaria
Hello!
I'm using your awesome icon set in my angular2/ionic2 application where I have to list all github languages and your repo fits perfectly, but I want to have a fallback when the app can't find an icon. In this case I want to display the devicons-code icon as a fallback.
My span looks like the following:
<span class="no-margin devicons devicons-{{item.icon}} devicons-code"></span>
Where
{{item.icon}}
is substituted during compile by the name of an icon:Code:
So both class are present, but every time I get the
devicons-code
icon. I needed to change the CSS file in order to put the.devicons-code
class as first (before.devicons-git
) in order to be overwritten if another existing language exists:I think that could resolve a problem for a lot of people using angular. Bye!! Gianmaria