Could you please advice me, how to select all cities from example by default. I am using this component as filter and I need to have selected all options when loading page.
`
Multiple
<p><i>Wrapped in 'ui form' for validation.</i></p>
<div class="ui form">
<sm-select [options]="{direction: 'upward', transition: 'vertical flip'}" [control]="multipleControl" placeholder="Select multiple..."
class="fluid search multiple" (onChange)="onMultiple($event)">
<option *ngFor="let city of cities">{{city}}</option>
</sm-select>
</div>`
Could you please advice me, how to select all cities from example by default. I am using this component as filter and I need to have selected all options when loading page.
`
Multiple
`export class SelectComponent { multipleControl: FormControl = new FormControl("", Validators.required); multipleData = []; selection: string = ""; cities: Array = ["New York", "Belgrade", "Stockholm", "Sarajevo"];
}`