font awesome with Angular 2

前端 未结 4 1067
一整个雨季
一整个雨季 2020-12-19 09:42

I started an NG2 app and wanna add font awesome. I npm installed it with : npm install --save font-awesome angular2-font-awesome. I added to project in systemjs.config.js:

4条回答
  •  天涯浪人
    2020-12-19 10:14

    if you wanna using FontAwesome css style in your app, just put css link to your index.html, you don't need angular2-font-awesome

    index.html

    
    

    if you using angular2-font-awesome

    
    
    

    i think use cdn is better.

提交回复
热议问题