Search
 
SCRIPT & CODE EXAMPLE
 

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"
      ]
  }
  ]
],
Comment

PREVIOUS NEXT
Code Example
Javascript :: disable other options in select except the selected 
Javascript :: react-select 
Javascript :: convert a date into timestamp in javascript 
Javascript :: selected value jquery 
Javascript :: react native prevent rotation of screen 
Javascript :: javascript console.table 
Javascript :: what is adapter.js 
Javascript :: current date in mongodb 
Javascript :: how to install chalk in node js 
Javascript :: javascript interview questions for freshers 
Javascript :: backtick string javascript 
Javascript :: vue 3 hooks 
Javascript :: discord.js clear console 
Javascript :: http header express 
Javascript :: ajax form submit without form tag 
Javascript :: How do I redirect to another webpage using javascript 
Javascript :: pause javascript 
Javascript :: angular detect chromebook 
Javascript :: how to use a regex expression in kibana query 
Javascript :: convert json object to lowercase 
Javascript :: how to create a new angular project in visual studio code 
Javascript :: javascript export to pdf 
Javascript :: js new element 
Javascript :: jquery api 
Javascript :: javascript module pattern 
Javascript :: get react form input data, How get form input data in react 
Javascript :: angular ionic capacitor nfc reader 
Javascript :: javascript delay some seconds 
Javascript :: reload parent window from prompt 
Javascript :: js some array 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =