angular2-virtual-select
Version:
A native angular 2 select and multi select component with virtual scrolling to allow thousands of options in one select component
39 lines (32 loc) • 908 B
Markdown
A native angular 2 select and multi select component with virtual scrolling to allow thousands of options in one select component.
npm install --save angular2-virtual-select
[](https://farin99.github.io//demos)
```javascript
import {ShSelectModule} from "angular2-virtual-select";
@NgModule({
imports: [
BrowserModule,
ShSelectModule.forRoot()
]
})
```
```html
<sh-select [options]="['aaaa','bbbb']"
[(ngModel)]="selectedItems"></sh-select>
```
```html
<sh-select [options]="[{name:'aaa',foo:'foo'},{name:'bbb',foo:'foo'}]"
[(ngModel)]="selectedItems"></sh-select>
```
```html
<sh-select [options]="[{name:'aaa',foo:'foo'},{name:'bbb',foo:'foo'}]"
[]="true"
[(ngModel)]="selectedItems"></sh-select>
```