ng2-font-awesome
TypeScript icon, indicating that this package has built-in type declarations

1.0.32 • Public • Published

ng2-font-awesome

a reusable font-awesome span

usage

importing in angular-seed (mgechev) project

project.config.ts:

  import { ExtendPackages } from './seed.config.interfaces';
  ...

  let additionalPackages: ExtendPackages[] = [{
    name: 'ng2-font-awesome',
    path: 'node_modules/ng2-font-awesome/index.js'
  }];
  
  this.addPackagesBundles(additionalPackages);

bundling with systemjs builder

importing the module

import { FontAwesomeModule} from 'ng2-font-awesome';

template usage

the following usages all will do fine:

<font-awesome [faIcon]="'fa fa-cubes'"></font-awesome>
<font-awesome [faIcon]="'fa-cubes'"></font-awesome>
<font-awesome [faIcon]="'cubes'"></font-awesome>

output:

alt text

/ng2-font-awesome/

    Package Sidebar

    Install

    npm i ng2-font-awesome

    Weekly Downloads

    12

    Version

    1.0.32

    License

    MIT

    Last publish

    Collaborators

    • gforceg