1.0.2 • Published 8 years ago

wtf-select v1.0.2

Weekly downloads
7
License
ISC
Repository
github
Last release
8 years ago

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>
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago