material icon indicating copy to clipboard operation
material copied to clipboard

md-select: Placeholder should be a expression, ng-change etc.

Open kschwidder opened this issue 11 years ago • 6 comments

a) In multi-lingual environment the placeholder should be set by an expression like {{'LABEL' | translate}}. b) the angular select offers an ng-change method to react on selection changes. How can I leverage this in md-select ? c) How to pre-select an initial value ?

kschwidder avatar Feb 19 '15 19:02 kschwidder

c) How to pre-select an initial value ?

Set the variable you use in the ng-model in your controller. For me this works (only tested without placeholder).

Frank3K avatar Feb 19 '15 19:02 Frank3K

Please consider using the ngMaterial forums for discussions about using mdSelect. Github should be used for issues and feature requests only. Thank you!

marcysutton avatar Feb 19 '15 19:02 marcysutton

Whereas (c) is indeed a question, (a) and (b) look like justified issues.

Frank3K avatar Feb 19 '15 19:02 Frank3K

Okay, cool. Separate issues would be helpful for tracking purposes.

marcysutton avatar Feb 19 '15 19:02 marcysutton

@kschwidder: I have create a Plunker to showcase issue (b). If you want you can use this to create a separate issue.

Frank3K avatar Feb 19 '15 20:02 Frank3K

great!

kschwidder avatar Feb 19 '15 20:02 kschwidder