GithubHelp home page GithubHelp logo

ajaymarathe / ng-fontawesome Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 2.1 MB

๐Ÿบ NG Fontawesome Icon for Angular Lovers. Coded by Bootcatch.

License: MIT License

JavaScript 39.84% TypeScript 60.16%
ng-fontawesome angular-font-awesome fontawesome angular-icon fontawesome-angular ng-font-awesome ng4-fontawesome ng7-fontawesome ng8-fontawesome ng-icon

ng-fontawesome's Introduction

NG Fontawesome Icon

๐Ÿบ NG Fontawesome Icon for Angular Lovers. Coded by Bootcatch.

NPM NPM JavaScript Style Guide

Installation

Using NPM:

npm i ng-fontawesome --save

npm i font-awesome --save

In your styles.scss file import font-awesome css

/* You can add global styles to this file, and also import other style files */
@import "font-awesome/css/font-awesome.min.css";

Usage

Import direct in your app.module.ts file:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';

//import NgFontawesomeModule from ng-fontawesome
import { NgFontawesomeModule } from "ng-fontawesome-icon";

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    //import your NgFontawesomeModule here
    NgFontawesomeModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Then use wherever you want !! Goodluck:

  <ng-fontawesome icon="file" size="2" color="orange"></ng-fontawesome>

Note

ng-fontawesome

  • Add only name to icon, e.g icon="file"
  • No need to add full name like e.g icon="fa fa-file"
  • icon - font-awesome icon name will find here here
  • size - icon size in rem.
  • color - you can give any valid value e.g red, yellow, #fffff, #ff0000.

Author

Ajay Marathe

Copyright and License

Copyright 2019 Ajay Marathe. Code released under the MIT license.

ng-fontawesome's People

Contributors

ajaymarathe avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.