Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Comment intégrer font awesome et bootstrap dans angular 13

1- npm install font-awesome --save
2- npm install --save bootstrap
3- In the angular-cli.json file locate the styles[] array and add font-awesome references directory here, like below:
4- nb:ceci est un exemple pour tester fontawesome <i class="fa fa-american-sign-language-interpreting fa-5x" aria-hidden="true"> </i>
5- on peut aussi pour les "scripts bootstrap" introduire le chamin de script dans "script"

"apps": [
    {
      "root": "src",
      "outDir": "dist",
      ....
      "styles": [
          "styles.css",
          "./node_modules/bootstrap/dist/css/bootstrap.css",
          "./node_modules/font-awesome/css/font-awesome.css" // -here webpack will automatically build a link css element out of this!?
      ],
      ...
	  "scripts":[
      	"chemin/vers/bootstrap/dist/js/bootstrap.min.js"
      ]
  }
  ]
],
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Comment #font #awesome #bootstrap #dans #angular
ADD COMMENT
Topic
Name
3+6 =