Skip to content

It's a simple select component based in angular2-material input component.

Notifications You must be signed in to change notification settings

vflaragao/wtf-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

It's a simple select component based in angular2-material input component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published