Sharing Top Content from the Angular-sphere.

Use Font-Awesome as a npm package with Ionic2 (Angular2)

  • Use Font-Awesome as a npm package with Ionic2 (Angular2)Install font-awesome npm packagenpm install font-awesome –save2.
  • Make sure you have ionic_copy and ionic_sass configured in the config section of your package.json file as follows:”config”: { “ionic_copy”: “.
  • config.js” “ionic_sass”: if not, then add the above lines to package.json and copy the files copy.config.js and sass.config.js from Add following line includePaths section of sass.config.jsincludePaths:[ Add the following line to = { src: dest: ‘{{WWW}}/fonts’ // it needs to be www/fonts as font-awesome.
  • css search fonts from it. }
  • Finally, add @import ‘font-awesome’; in variables.css (in {{ROOT}}/src/theme folder)Now you can use font-awesome fonts in your project!i class=”fa fa-thumbs-up” aria-hidden=”true”/i

2. Make sure you have ionic_copy and ionic_sass configured in the config section of your package.json file as follows: 2–1. if not, then add the above lines to package.json and copy the files copy…

@aaronksaunders: “Use Font-Awesome as a npm package with Ionic2 (Angular2)” by Ilho Song @Ionicframework #javascript #angularjs

file as follows:

“config”: {

“ionic_copy”: “./config/copy.config.js”

folder)

Now you can use font-awesome fonts in your project!

Use Font-Awesome as a npm package with Ionic2 (Angular2)

Comments are closed, but trackbacks and pingbacks are open.