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:
- primary
- error
- info
- warn
- success
- default