Socket
Book a DemoInstallSign in
Socket

jtc-angular2_badges

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jtc-angular2_badges

badge component for Angular 2

latest
Source
npmnpm
Version
1.0.10
Version published
Maintainers
1
Created
Source

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

Keywords

Angular 2

FAQs

Package last updated on 07 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts