@bromzh/ng2-select

Select box component for Angular 2

Usage no npm install needed!

<script type="module">
  import bromzhNg2Select from 'https://cdn.skypack.dev/@bromzh/ng2-select';
</script>

README

cp-select

Select box component for Angular 2

Install

npm i -S @bromzh/ng2-select

Setup

import { SelectModule } from '@bromzh/ng2-select';

@NgModule({
    imports: [ SelectModule ],
})
export class AppModule { }

Usage

<br-select [multiple]="true" [(ngModel)]="selected" name="select">
    <br-select-option [value]="2" [text]="'Option 2'">Option 2</br-select-option>
    <br-select-option [value]="3" [text]="'Option 3'">Option 3</br-select-option>
    <br-select-option [value]="1" [text]="'Option 1'">Option 1</br-select-option>
</br-select>