@jaspero/ng2-select

A select library for Angular 2, with both single and multiple functionality.

Stats

StarsIssuesVersionUpdatedCreatedSize
@jaspero/ng2-select
1780.1.24 years ago5 years agoMinified + gzip package size for @jaspero/ng2-select in KB

Readme

Build Status NPM Version

NG2 Select

A select library for Angular 2, with both single and multiple functionality.

npm install --save @jaspero/ng2-select

Setup

Import JasperoSelectModule in your @NgModule:

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

How To Use

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

<jaspero-select></jaspero-select>

Options

You can pass the following inputs to the component:

Name Type Description Default
options An array of options for the select dropdown any[] []
key The key from the options object to be used as the name of the option string name
multi Should more options be selectable at once boolean false

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.