Socket
Book a DemoInstallSign in
Socket

ngx-badges

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-badges

___ Simple badge module for Angular 13. ### There are several different badge stylings: <li>primary</li> <li>error</li> <li>info</li> <li>warn</li> <li>success</li> <li>default</li>

latest
npmnpm
Version
14.0.1
Version published
Maintainers
1
Created
Source

ngx-badges

Simple badge module for Angular 13.

There are several different badge stylings:

  • primary
  • error
  • info
  • warn
  • success
  • default

How to use:

From NPM run: npm i ngx-badges --save
Add to your module imports. Ex...

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgxBadgesModule } from 'projects/ngx-badges/src/public-api';
import { AppComponent } from './app.component';


@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule, NgxBadgesModule
  ],

Add to component HTML:

PRIMARY: <ngx-badges text="PRIMARY" type="PRIMARY"></ngx-badges>
SUCCESS: <ngx-badges text="SUCCESS" type="SUCCESS"></ngx-badges>
WARN: <ngx-badges text="WARN" type="WARN"></ngx-badges>
ERROR: <ngx-badges text="ERROR" type="ERROR"></ngx-badges>
INFO: <ngx-badges text="INFO" type="INFO"></ngx-badges>
DEFAULT: <ngx-badges text="DEFAULT" type="DEFAULT"></ngx-badges>

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

FAQs

Package last updated on 03 Jun 2022

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