installing fontawesome vue project
//install fontawesome icons
npm install --save-dev @fortawesome/fontawesome-free
//inside main.js add
import '@fortawesome/fontawesome-free/css/all.css' <------
import '@fortawesome/fontawesome-free/js/all.js' <------
.
.
.
new Vue({ router, store, render: h => h(App),}).$mount('#app')
// you can now use the icons anywhere in your project with the <i>
<i class="fab fa-2x fa-facebook"></i>
<i class="fab fa-2x fa-twitter"></i>
<i class="fab fa-2x fa-instagram"></i>
0
0
//install fontawesome icons
npm install --save-dev @fortawesome/fontawesome-free
//inside main.js add
import '@fortawesome/fontawesome-free/css/all.css' <------
import '@fortawesome/fontawesome-free/js/all.js' <------
.
.
.
new Vue({ router, store, render: h => h(App),}).$mount('#app')
// you can now use the icons anywhere in your project with the <i>
<i class="fab fa-2x fa-facebook"></i>
<i class="fab fa-2x fa-twitter"></i>
<i class="fab fa-2x fa-instagram"></i>
Thank you!
0
0
Are there any code examples left?
New code examples in category Javascript