1.0.3 • Published 7 years ago
@stejnar/select v1.0.3
@stejnar/select
Angular component library for fancy select inputs
npm package: https://www.npmjs.com/package/@stejnar/select
Components
1. Select
<select placeholder>
@Input placeholder: string
2. SelectOption
<select-option value>
@Input value: any
Usage
<select [(ngModel)]="binding" placeholder="Add to shopping cart...">
<select-option [value]="{ type: 'Banana', number: 3 }">
3 Bananas
</select-option>
<select-option [value]="{ type: 'Apple', number: 2 }">
2 Apples
</select-option>
<select-option value="JavaScript Cookbook">
Javascript Cookbook
</select-option>
</select>