@jaspero/ng-chips
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

Build Status NPM Version

NG Chips

A chip library for Angular

A demo can be found here

Installation

To install this library, run:

$ npm install --save @jaspero/ng-chips

Setup

Import JasperoChipsModule in your @NgModule:

@NgModule({
    imports: [
        JasperoChipsModule
    ],
    declarations: [AppComponent],
    bootstrap: [AppComponent]
})
export class AppModule {}

How To Use

To use the library simply add the component in your templates:

<jaspero-chips></jaspero-chips>

Options

You can pass the following inputs to the component:

Name Type Description Default
type Type of the chip input. text,number,password,date text
duplicates Should adding duplicates be allowed. boolean false

This component also support Angular 2 template driven and reactive forms.

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Jaspero co.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @jaspero/ng-chips

      Weekly Downloads

      1

      Version

      0.1.4

      License

      MIT

      Unpacked Size

      20.5 kB

      Total Files

      8

      Last publish

      Collaborators

      • flauc1