ngx-octicons
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

ngx-octicons

This is a little library to provide an angularistic interface (a directive) in apps. The repository contains of an angular workspace which contains two applications:

  1. ngx-octicons, the library
  2. demo, the development app

usage

to install, simply

npm install --save ngx-octicons

Afterwards just import the Module into your Application

import { OcticonsModule } from 'ngx-octicons';


@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    OcticonsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

This library was generated with Angular CLI version 8.2.11.

and finally in your template you can do:

<span octicon="heart"></span>

<span octicon="gear" color="#552232" size="48"></span>

<span octicon="shield-lock" color="4985FF" size="96"></span>

<i octicon="heart" color="red"></i>

you can define the icon, the color and its size!

Readme

Keywords

Package Sidebar

Install

npm i ngx-octicons

Weekly Downloads

60

Version

0.1.1

License

none

Unpacked Size

38 kB

Total Files

23

Last publish

Collaborators

  • olierxleben