HTML:
<select data-placeholder="Skill List" style="width:100%;" class="chzn-select form-control" multiple="multiple">
<option *ngFor="#skill of allSkills" [ngValue]="skill">{{skill}}
</option>
</select>
TS:
allSkills = ['Welding', 'Forklifting'];
selectedSkill = ['Welding'];
ngOnInit(): void {
jQuery('.chzn-select').select2();
}
What is the best way to initially assign a value to selectedSkill?