@priotas/angular-fa

1.4.0 • Public • Published

Fontaweseome SVG icons for AngularJS

Build Status

Installation

Minimum AngularJs Version is 1.5. Does not work with Angular >=2.

yarn add  @priotas/angular-fa
npm install --save @priotas/angular-fa

Usage

The component does not package the icons itself. It relies on the @fortawesome/fontawesome package to be installed. The desired available icons must be made available by using the fontawesome.library.add() method.


See:


Example:

// JS
import angular from 'angular';
import angularFa from '@priotas/angular-fa';
import fontawesome from '@fortawesome/fontawesome';
import solid from '@fortawesome/fontawesome-free-solid';
import brands from '@fortawesome/fontawesome-free-brands';

fontawesome.library.add(solid, brands);

angular.module('my-app', [ angularFa ]);
<!--HTML -->
<fa-icon prefix="fab" icon="github" flip="vertical" pulse="true"></fa-icon> 

Readme

Keywords

none

Package Sidebar

Install

npm i @priotas/angular-fa

Weekly Downloads

8

Version

1.4.0

License

MIT

Unpacked Size

1.82 MB

Total Files

25

Last publish

Collaborators

  • madflow