This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

jtc-angular2_badges
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i jtc-angular2_badges

Weekly Downloads

10

Version

1.0.10

License

ISC

Last publish

Collaborators

  • jtc10005