Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

How to sum selection multi option?

$
0
0

HTML:
Food

  <ion-select multiple="true" cancelText="Close" okText="Okay!" [(ngModel)]="signup.state"

    (ionChange)="getcitylist($event)" placeholder="Please Select ">


    <ion-select-option *ngFor="let state of statelist" [value]="state.state_name">

      {{state.state_name}}

    </ion-select-option>

  </ion-select>

TS:

signup = {

state: ''

}

statelist = [{

state_id: 1,

state_name: 'Stir-Fried Pumpkin',

state_cal: 130

}, {

state_id: 2,

state_name: ' Thick Noodle Dish',

state_cal: 110

}, ]

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>