Binding select element to object in Angular

后端 未结 14 1675
走了就别回头了
走了就别回头了 2020-11-22 02:41

I\'d like to bind a select element to a list of objects -- which is easy enough:

@Component({
   selector: \'myApp\',
   template: `

My Application&

14条回答
  •  日久生厌
    2020-11-22 03:29

    You can get selected value also with help of click() by passing the selected value through the function

    
      
        {{ list.category }}
      
    
    

提交回复
热议问题