So I am build a new suppression page for mobile app. For legacy reasons we are using, ionic 3 angular 5.
Problem I am facing is getting a real count of ion-items selected from a list of ion-select mulitple=true items. I have following html
<ion-list>
<ion-item>
<ion-label>Select Nodes</ion-label>
<ion-select [(ngModel)]="selectedNodes" multiple="true">
<ion-option *ngFor="let node of incident.context['nodes']" value={{node}}>{{ node }}</ion-option>
</ion-select>
</ion-item>
</ion-list>
incident.context['nodes']
contains a list like ["foo", "bar","baz"]
Once selection is made it is displaying the list of selected items. But I want to display the count instead. How do I do that?
selectedNodes.length
– Edison