All Projects → FortAwesome → Angular Fontawesome

FortAwesome / Angular Fontawesome

Licence: mit
Official Angular component for Font Awesome 5

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Angular Fontawesome

React Native Fontawesome
React Native Font Awesome Icons
Stars: ✭ 173 (-83.62%)
Mutual labels:  fontawesome, icons
aurelia-fontawesome
Font Awesome 5 Aurelia component
Stars: ✭ 15 (-98.58%)
Mutual labels:  fontawesome, icons
Font Awesome
The iconic SVG, font, and CSS toolkit
Stars: ✭ 66,937 (+6238.73%)
Mutual labels:  fontawesome, icons
Font Awesome Stylus
Stylus port for font-awesome 4.7.0
Stars: ✭ 77 (-92.71%)
Mutual labels:  fontawesome, icons
Iconfontcppheaders
C, C++ headers and C# classes for icon fonts: Font Awesome, Fork Awesome, Material Design, Kenney game icons and Fontaudio
Stars: ✭ 509 (-51.8%)
Mutual labels:  fontawesome, icons
Yii2 Fontawesome
Asset Bundle for Yii2 with Font Awesome http://fortawesome.github.io/Font-Awesome/
Stars: ✭ 149 (-85.89%)
Mutual labels:  fontawesome, icons
fontawesome-subset
Creates subsets of FontAwesome fonts for optimized use on the web.
Stars: ✭ 41 (-96.12%)
Mutual labels:  fontawesome, icons
Fontawesome Module
Module to use Font Awesome icons in Nuxt.js
Stars: ✭ 79 (-92.52%)
Mutual labels:  fontawesome, icons
Radialmenu
A highly customizable radial menu that's very easy to setup.
Stars: ✭ 371 (-64.87%)
Mutual labels:  fontawesome, icons
React Icons Kit
React Svg Icons
Stars: ✭ 352 (-66.67%)
Mutual labels:  fontawesome, icons
Mahapps.metro.iconpacks
Awesome icon packs for WPF and UWP in one library
Stars: ✭ 1,157 (+9.56%)
Mutual labels:  fontawesome, icons
Swifticons
🎢Swift Library for Font Icons - ★ this library
Stars: ✭ 747 (-29.26%)
Mutual labels:  fontawesome, icons
rofi-fontawesome
fontawesome icon list for rofi dmenu
Stars: ✭ 58 (-94.51%)
Mutual labels:  fontawesome, icons
react-native-fontawesome-pro
Easily use your FontAwesome Pro icons in React-Native
Stars: ✭ 44 (-95.83%)
Mutual labels:  fontawesome, icons
Alfred Font Awesome Workflow
🎩 Font Awesome workflow for Alfred
Stars: ✭ 714 (-32.39%)
Mutual labels:  fontawesome, icons
Font Awesome Php
A PHP library for Font Awesome 4.7.
Stars: ✭ 47 (-95.55%)
Mutual labels:  fontawesome, icons
Get Social Social Media Font
Font Based Social Media Icon Set
Stars: ✭ 15 (-98.58%)
Mutual labels:  icons
Blade Zondicons
A package to easily make use of Zondicons in your Laravel Blade views.
Stars: ✭ 40 (-96.21%)
Mutual labels:  icons
Craft3 Iconpicker
Craft plugin that provides a new field type that offers end users an easy way to pick an icon from a .woff or .ttf font file. You can easily use ionicons or font awesome icons or any other compatible font file.
Stars: ✭ 15 (-98.58%)
Mutual labels:  icons
Fork Awesome
A fork of the iconic font and CSS toolkit
Stars: ✭ 878 (-16.86%)
Mutual labels:  icons
Official Javascript Component

angular-fontawesome

npm

Official Angular component for Font Awesome 5

Installation

Using ng add:

# See Compatibility table below to choose a correct version
$ ng add @fortawesome/[email protected]<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/[email protected]<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/[email protected]<version>

Compatibility table

@fortawesome/angular-fontawesome Angular ng-add
0.1.x 5.x not supported
0.2.x 6.x not supported
0.3.x 6.x && 7.x not supported
0.4.x, 0.5.x 8.x not supported
0.6.x 9.x supported
0.7.x 10.x supported
0.8.x 11.x supported

Usage

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

  1. Add FontAwesomeModule to imports in src/app/app.module.ts:

    import { BrowserModule } from '@angular/platform-browser';
    import { NgModule } from '@angular/core';
    
    import { AppComponent } from './app.component';
    import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
    
    @NgModule({
      imports: [
        BrowserModule,
        FontAwesomeModule
      ],
      declarations: [AppComponent],
      bootstrap: [AppComponent]
    })
    export class AppModule { }
    
  2. Tie the icon to the property in your component src/app/app.component.ts:

    import { Component } from '@angular/core';
    import { faCoffee } from '@fortawesome/free-solid-svg-icons';
    
    @Component({
      selector: 'app-root',
      templateUrl: './app.component.html'
    })
    export class AppComponent {
      faCoffee = faCoffee;
    }
    
  3. 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 plinkpaste ej2 peterblazejewicz arjenbrandenburgh athisun madebyjeffrey benjamincharity

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

The Font Awesome team:

mlwilkerson supercodepoet robmadole talbs

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].