Official Angular component for Font Awesome 5+
Go to file
Yaroslav Admin 259bd3905b Release 2.0.1 2025-06-02 19:01:45 +02:00
.github Align TypeScript configuration with the new Angular CLI project 2025-06-02 18:58:12 +02:00
.yarn/patches Fix integration tests 2024-11-20 22:29:44 +01:00
docs Convert to use signal input and output (#464) 2025-03-18 11:11:35 +01:00
projects Release 2.0.1 2025-06-02 19:01:45 +02:00
src Align TypeScript configuration with the new Angular CLI project 2025-06-02 18:58:12 +02:00
tasks Introduce Prettier and format the codebase 2019-11-10 17:00:39 +01:00
testing Set standalone property to false for testing components 2024-11-20 22:29:44 +01:00
.editorconfig Reorganize for distribution as an Angular library (#4) 2018-01-18 16:23:44 -08:00
.eslintrc.json Update Angular ESLint dependencies and configuration 2025-05-30 12:03:27 +02:00
.gitignore Add global styles properly in the SSR context 2024-05-15 19:23:21 +02:00
.prettierrc.json Update to latest dependencies 2020-03-28 10:20:44 +01:00
.yarnrc.yml Bump Node and Yarn 2023-11-08 19:01:15 +01:00
CHANGELOG.md Release 2.0.1 2025-06-02 19:01:45 +02:00
CODE_OF_CONDUCT.md feat(docs): move docs into docs folder and restructure them for better clarity 2019-08-07 19:45:27 +02:00
CONTRIBUTING.md Update StackBlitz projects to the latest versions 2021-12-11 13:10:48 +01:00
DEVELOPER.md Improve publishing instructions 2023-12-15 18:07:09 +01:00
LICENSE Include the LICENSE file in the published package 2019-11-10 17:58:24 +01:00
README.md Update README.md 2025-05-31 20:44:09 +02:00
UPGRADING.md Convert to use signal input and output (#464) 2025-03-18 11:11:35 +01:00
angular.json Align TypeScript configuration with the new Angular CLI project 2025-06-02 18:58:12 +02:00
karma.conf.js Switch to karma-coverage 2021-05-30 18:03:58 +02:00
ng-package.json Make @fortawesome/fontawesome-svg-core a regular dependency 2024-05-20 22:09:49 +02:00
package.json Release 2.0.1 2025-06-02 19:01:45 +02:00
tsconfig.json Align TypeScript configuration with the new Angular CLI project 2025-06-02 18:58:12 +02:00
tsconfig.lib.json Align TypeScript configuration with the new Angular CLI project 2025-06-02 18:58:12 +02:00
tsconfig.lib.prod.json Distribute library using partial Ivy compilation mode 2021-07-23 17:46:00 +02:00
tsconfig.spec.json Align TypeScript configuration with the new Angular CLI project 2025-06-02 18:58:12 +02:00
yarn.lock Update dependencies 2025-05-31 20:01:36 +02:00

README.md

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.

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 ng-add
0.1.x 5.x 5.x not supported
0.2.x 6.x 5.x not supported
0.3.x 6.x && 7.x 5.x not supported
0.4.x, 0.5.x 8.x 5.x not supported
0.6.x 9.x 5.x supported
0.7.x 10.x 5.x supported
0.8.x 11.x 5.x supported
0.9.x 12.x 5.x supported
0.10.x 13.x 5.x && 6.x supported
0.11.x 14.x 5.x && 6.x supported
0.12.x 15.x 5.x && 6.x supported
0.13.x 16.x 5.x && 6.x supported
0.14.x 17.x 5.x && 6.x supported
0.15.x 18.x 5.x && 6.x supported
1.x 19.x 5.x && 6.x supported
2.x 20.x 5.x && 6.x supported

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';
    
    @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"></fa-icon>
    

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

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