Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

How to create md-select with icon in angular2 #10694

Closed
KristianTyskyi opened this issue May 27, 2017 · 3 comments
Closed

How to create md-select with icon in angular2 #10694

KristianTyskyi opened this issue May 27, 2017 · 3 comments

Comments

@KristianTyskyi
Copy link

I added icon in md-option and i want to see it with the selected language.
Here is my code

<md-select id="countryString" name="countryString"   [(ngModel)]="selectedCountry" >
          <md-option [value]="'en'">
            <img src="../../assets/images/icons/en.png" />Англійська</md-option>
          <md-option [value]="'ua'">
            <img src="../../assets/images/icons/ukr.png" />Українська</md-option>
          <md-option [value]="'ru'">
            <img src="../../assets/images/icons/ru.png" />Російська</md-option>
        </md-select>

image

I have:
image

How to make like this:
image

@borislemke
Copy link

Please close this issue, I've answered your question on StackOverflow. The GitHub issues is not an appropriate place to post such questions.

@borislemke
Copy link

On top of that, this is material for AngularJS, not for Angular 2+ as you're asking.

@KristianTyskyi
Copy link
Author

Sorry, but in yours plunker i see next

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants