简体   繁体   中英

Angular2 material selectbox

I learn angular2 with it's material design. I use 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 have这个错误

I use this documetnation

您缺少“值”周围的括号,它应该是:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM