1.0.0 • Published 8 years ago

angular2-select2 v1.0.0

Weekly downloads
25
License
MIT
Repository
github
Last release
8 years ago

Angular2 Select2


About

Angular2 integration of Select2.


Install

Install with npm:

npm i --save angular2-select2

Basic Example

Import the component Select2Component and add it to your directives:

import Select2Component from 'angular2-select2';

...

@Component({
...
    directives: [Select2Component],
...
})

Add the select2 component to your template.

<select2 [options]="[{label: 'foo', value: 'bar', disabled: false}]"></select2>