“cara menginstal font luar biasa di sudut” Kode Jawaban

Font Awesome Angular

//install in your project directory
npm install --save @fortawesome/fontawesome-free

// in angular.json add in the 'build' section the following lines in 'styles' and 'scripts'
"styles": [
           "node_modules/@fortawesome/fontawesome-free/css/all.css"
        ]

"scripts": [
          "node_modules/@fortawesome/fontawesome-free/js/all.js"
        ]

//from now on, you can use fontawesome icons through the <i>
    <i class='fab fa-facebook'></i>
Grieving Gharial

cara menginstal font luar biasa di sudut

// 1. "npm install font-awesome --save"
// 2. In the angular-cli.json file locate the styles[] array and add font-awesome references directory here, like below:
"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!?
      ],
      ...
  }
  ]
],
// 3. Place some font-awesome icons in any html file you want:  
  <i class="fa fa-american-sign-language-interpreting fa-5x" aria-hidden="true"> </i>
// 4. Stop the application Ctrl + c then re-run the app using ng serve because the watchers are only for the src folder and angular-cli.json is not observed for changes.
// 5. Enjoy your awesome icons!
Fancy Flatworm

Tambahkan font mengagumkan ke sudut

<!--In the index.html-->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
MitchAloha

cara menggunakan ikon fontawsoem yang diunduh di angula

"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!?
      ],
      ...
  }
  ]
],
Dark Dolphin

Jawaban yang mirip dengan “cara menginstal font luar biasa di sudut”

Pertanyaan yang mirip dengan “cara menginstal font luar biasa di sudut”

Lebih banyak jawaban terkait untuk “cara menginstal font luar biasa di sudut” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya