How to get the value from ion-select option

前端 未结 3 1023
借酒劲吻你
借酒劲吻你 2020-12-31 05:35

I have an array of object called options.

this is my html code

    
        place         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 06:22

    Check after making below changes :

    // html change

    
      {{item.name}}   {{item.price}} 
    
    

    //.ts change

    optionsFn() {
      console.log(this.gaming);
      let item = this.gaming;
      this.product_option_value_idOp = item.product_option_value_id;
      this.priceOp = item.price;
      this.salespriceOp = item.salesprice;
      this.quantityOp = item.quantity;
      this.skuOp = item.sku;
      this.nameOp = item.name;
    }
    

提交回复
热议问题