1.0.10 • Published 10 years ago

jtc-angular2_badges v1.0.10

Weekly downloads
1
License
ISC
Repository
github
Last release
10 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

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago