📅  最后修改于: 2022-03-11 15:02:08.440000             🧑  作者: Mango
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
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"
]
}
]
],