0.1.4 • Published 6 years ago

@jaspero/ng-chips v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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:

NameTypeDescriptionDefault
typeType of the chip input.text,number,password,datetext
duplicatesShould adding duplicates be allowed.booleanfalse

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.

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago