README
Wtf-select
It's a simple select component based in angular2-material input component.
Version: 1.0.2
Installation
Run the following command:
$ npm install wtf-select
Usage
Now, u can make simple forms by using of material select tags.
...
<md-select placeholder="MyPlaceholder" [(ngModel)]="TARGET_SELECTED_ITEM">
<!-- u can use *ngFor too -->
<md-option [value]="UR_VALUE" [label]="UR_LABEL"></md-option>
</md-select>
...
Notes
The md-option's label attribute cannot be used inside of md-option tag. It should be like as shown above.
<!-- Instead of: -->
<md-option [value]="UR_VALUE">UR_LABEL</md-option>
<!-- Use: -->
<md-option [value]="UR_VALUE" [label]="UR_LABEL"></md-option>