Angular2 material selection

I am learning angular2 with its material design. I use the md-select module for material and have code

 <md-select>
    <md-option value="1">1</md-option>
    <md-option value="2">2</md-option>
    <md-option value="3">3</md-option>
    <md-option value="4">4</md-option>
  </md-select>

But I this mistake

I am using this documentation

+4
source share
1 answer

You do not have parentheses around the "value", it should be:

...<md-option [value]="1">1</md-option>...
+1
source

Source: https://habr.com/ru/post/1661560/


All Articles