랭킹으로 돌아가기

FortAwesome/angular-fontawesome

TypeScriptfontawesome.com

Official Angular component for Font Awesome 5+

angularfontawesomeicons
스타 성장
스타
1.5k
포크
166
주간 성장
이슈
14
5001k1.5k
2017년 12월2020년 10월2023년 9월2026년 7월
아티팩트npmnpm install angular-fontawesome
README
Official Javascript Component

angular-fontawesome

npm

Official Angular component for Font Awesome 5+

Installation

If you have FontAwesome Pro subscription, make sure to configure access before following the installation instructions.

Note: Pro+ Icons are only available in Kit Packages Along with a Pro+ Plan, you'll need to install a downloaded Kit package to use any of our Pro+ Icons — they are not available in any other packages. Read more.

Using ng add:

# See Compatibility table below to choose a correct version
$ ng add @fortawesome/angular-fontawesome@<version>

Using Yarn

$ yarn add @fortawesome/free-solid-svg-icons
# See Compatibility table below to choose a correct version
$ yarn add @fortawesome/angular-fontawesome@<version>

Using NPM

$ npm install @fortawesome/free-solid-svg-icons
# See Compatibility table below to choose a correct version
$ npm install @fortawesome/angular-fontawesome@<version>

Compatibility table

@fortawesome/angular-fontawesome Angular Font Awesome
5.x 22.x 5.x && 6.x && 7.x
4.x 21.x 5.x && 6.x && 7.x
3.x 20.x 5.x && 6.x && 7.x

See the compatibility page for older versions.

Usage

To get up and running using Font Awesome with Angular follow the below steps:

  1. Add FontAwesomeModule to the imports and tie the icon to the property in your component src/app/app.component.ts:

    import { Component } from '@angular/core';
    import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
    import { faCoffee } from '@fortawesome/free-solid-svg-icons';
    
    // Import from Kit Packages (Pro+ Icons)
    // import {faCloud} from "@awesome.me/kit-<KIT_ID>/icons/slab/regular";
    
    
    @Component({
      selector: 'app-root',
      imports: [FontAwesomeModule], // alternatively, individual components can be imported
      templateUrl: './app.component.html'
    })
    export class AppComponent {
      faCoffee = faCoffee;
    }
    
  2. Use the icon in the template src/app/app.component.html:

    <fa-icon [icon]="faCoffee" />
    

Documentation

Examples

Stackblitz

Here's a StackBlitz Starter Sample on how to display Solid, Regular, and Brand icons using the Icon Library.

Demo application

You can find examples in the projects/demo directory. You can follow the docs to run the demo app on your own machine.

Contributing

angular-fontawesome is a product of the community, you can take a look at the developer docs to find about more on how to contribute back to the project.

Contributors

The following contributors have either helped to start this project, have contributed code, are actively maintaining it (including documentation), or in other ways being awesome contributors to this project. We'd like to take a moment to recognize them.

devoto13 zeevkatz scttcper DavidePastore donmckenna paustint mzellho elebitzero mcenkar SiddAjmera stephaniepurvis loicgasser damienwebdev ronniebarker bhanuhiteshi MrSuttonmann ej2 peterblazejewicz arjenbrandenburgh athisun madebyjeffrey benjamincharity NayeBeckham Nosfistis bleistift-zwei igorls jasonlundien Font Awesome Team pankajparkar medbenmakhlouf Stoffel-KT Ionaru KristofGilis cheng93

If we've missed someone (which is quite likely) submit a Pull Request to us and we'll get it resolved.

관련 저장소
justjavac/free-programming-books-zh_CN

:books: 免费的计算机编程类中文书籍,欢迎投稿

GNU General Public License v3.0pythonjavascript
weibo.com/justjavac
117.7k28.2k
angular/angular

Deliver web apps with confidence 🚀

TypeScriptnpmMIT Licenseangulartypescript
angular.dev
100.6k27.5k
storybookjs/storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation

TypeScriptnpmMIT Licensestorybookstyleguide
storybook.js.org
90.6k10.2k
leonardomso/33-js-concepts

📜 33 JavaScript concepts every developer should know.

JavaScriptnpmMIT Licensejavascriptconcepts
33jsconcepts.com
66.5k9.2k
ionic-team/ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.

TypeScriptnpmMIT Licenseionicmobile
ionicframework.com
52.6k13.3k
prettier/prettier

Prettier is an opinionated code formatter.

JavaScriptnpmMIT Licenseformatterprinter
prettier.io
52.1k4.9k
Asabeneh/30-Days-Of-JavaScript

30 days of JavaScript programming challenge is a step-by-step guide to learn JavaScript programming language in 30 days. This challenge may take more than 100 days, please just follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw

JavaScriptnpm30daysofjavascriptjavascript-for-everyone
46.6k10.5k
paperless-ngx/paperless-ngx

A community-supported supercharged document management system: scan, index and archive all your documents

PythonPyPIGNU General Public License v3.0angulararchiving
docs.paperless-ngx.com
43.3k2.9k
SheetJS/sheetjs

📗 SheetJS Spreadsheet Data Toolkit -- New home https://git.sheetjs.com/SheetJS/sheetjs

Apache License 2.0xlsxexcel
sheetjs.com
36.3k7.9k
wailsapp/wails

Create beautiful applications using Go

GoGo ModulesMIT Licensegogolang
wails.io
35.3k1.8k
nrwl/nx

The Monorepo Platform that amplifies both developers and AI agents. Nx optimizes your builds, scales your CI, and fixes failed PRs automatically. Ship in half the time.

TypeScriptnpmMIT Licensenxangular
nx.dev
29.1k2.8k
sudheerj/javascript-interview-questions

List of 1000 JavaScript Interview Questions

JavaScriptnpmjavascriptjavascript-interview-questions
27.5k7.7k