This isn't showing the selected value like it would if it were a textbox instead of a select. What's wrong?
<md-select #mySelect>
<md-option value="1">one</md-option>
<md-option value="2">two</md-option>
</md-select>
{{ mySelect.value }}
Try #variable.selected.value
like this:
<md-select #mySelect>
<md-option value="1">one</md-option>
<md-option value="2">two</md-option>
</md-select>
<div *ngIf="mySelect.selected">
{{mySelect.selected.value}}
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With