1.0.10 • Published 8 years ago

jtc-angular2_badges v1.0.10

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

jtc-Angular2_Badges


Latest version: 1.0.10 Simple badge module for Angular 2.

How to use:

From NPM run: npm install jtc-angular2_badges --save
Add to your module directives. Ex...

import { NgModule
    , BrowserModule
    , HomeComponent
    , routing
    , FormsModule } from './index.ts';
import { SharedModule }            from '../shared/shared.module';

import { JtcBadgeModule } from 'jtc-angular2_badges/jtc-angular2_badges';

@NgModule({
    imports: [BrowserModule, routing, FormsModule, SharedModule, JtcBadgeModule],
    declarations: [HomeComponent]
})
export class HomeModule { }

Add to component HTML:

<jtc-Badge type="error" text="INACTIVE" *ngIf="!table.IsActive"></jtc-Badge>

text is the text to appear in the badge. type is the stylings to be applied to the badge.

There are several different badge stylings:

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago