0.14.1 • Published 4 months ago

@fortawesome/angular-fontawesome v0.14.1

Weekly downloads
145,290
License
MIT
Repository
github
Last release
4 months ago

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/fontawesome-svg-core
$ 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/fontawesome-svg-core
$ 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-fontawesomeAngularFont Awesomeng-add
0.1.x5.x5.xnot supported
0.2.x6.x5.xnot supported
0.3.x6.x && 7.x5.xnot supported
0.4.x, 0.5.x8.x5.xnot supported
0.6.x9.x5.xsupported
0.7.x10.x5.xsupported
0.8.x11.x5.xsupported
0.9.x12.x5.xsupported
0.10.x13.x5.x && 6.xsupported
0.11.x14.x5.x && 6.xsupported
0.12.x15.x5.x && 6.xsupported
0.13.x16.x5.x && 6.xsupported
0.14.x17.x5.x && 6.xsupported

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:

    ```typescript
    import { Component } from '@angular/core';
    import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
    import { faCoffee } from '@fortawesome/free-solid-svg-icons';
    
    @Component({
      selector: 'app-root',
      standalone: true,
      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:

    ```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.

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

@kikstart-ui/layout-docs@kikstart-ui/layout-web@kikstart-ui/ui-iconebcont-galaxyfront-core-libwe-notificationzdajesz-material-library-npmpulsifi-libten-thousandngx-tree-dnd-xcia-appsnovasys-comments-componentsnovasys-comments@nik_90/galileoecs-ui-componentsvn-workspacenebular-angular-seedumc-meyex-uno@isygis/isy-gis-bimintorqa-ui-corecamotecarousel-variations-with-owl-carousel@infinitebrahmanuniverse/nolb-_fort@deer-inc/ng-lp@happystagger/web@everything-registry/sub-chunk-338@davidlj95/website@davidlj95/website-v2ddtga-callcenter-frontdemo-publishing-to-npmshle-surveysieni-diagrams-modulesimplify-angular-testdti-ui-elementssin-wcsnovasys-authentication-componentsstoldos-angular-componentsellibelectron-angular-preferencesdevg95-au-course-au-inputpygequill-uirule-audit-approom-layoutreports-libreviews-componentssportotekaebba-components-librarysqilsoft-treedw-component-ssskeletor-adminskyfall-factoryopsyscap-corepaho-ui@bellese/angular-design-systemclient-electronjscia-lib-appcimhaclientedi-electronjspokedex-app@chatr/angularportalframework2common-component-lib-demo@southsystem/layoutconsultantportal@convirza/dialer@crexi-dev/demo@boklisten/bl-admin@boklisten/bl-reporterchatrestck-screen-res@bdaya-dev/bdaya.angular.buttons@cucurb-it/ngx-animated-bootstrap-button@cucurb-it/ngx-wizard@cwi/ngx-sharepoint-table@boklisten/bl-web@apipass/icons@apipass/web-componentsauditbot-libauditbot-libraryocto-loginoctopeek-template-headernxg-drag-dropnw-calendar@augerm/awesome-uipreview-lib-appprime.ng-designer-themescustom-daterange-picker-cbnotationpwa@aboudard/bootstrap-schematicsaz-2bank-app-uibigbasketflexingsubzw0rld-ng-data-tablesupportive-supervision-tool-adminfilemantis-libflow-dg-category-modulefm-libraryessence-light-saber
0.14.1

4 months ago

0.14.0

5 months ago

0.13.0

12 months ago

0.12.0

1 year ago

0.12.1

1 year ago

0.11.1

2 years ago

0.11.0

2 years ago

0.10.2

2 years ago

0.10.1

2 years ago

0.10.0

2 years ago

0.9.0

3 years ago

0.8.2

3 years ago

0.8.1

3 years ago

0.8.0

3 years ago

0.7.0

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.6.0-alpha.0

4 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.1.0-10

6 years ago

0.1.0-9

6 years ago

0.1.0-8

6 years ago

0.1.0-7

6 years ago

0.1.0-6

6 years ago

0.1.0-5

6 years ago

0.1.0-4

6 years ago

0.1.0-3

6 years ago

0.1.0-2

6 years ago

0.1.0-1

6 years ago