I would like to choose which option is selected in a combobox and I want to be able to change the selected option in my Typescript.
I have only two option : yes or no. I want choose which one is selected when my combobox appears
EDIT :
It's an answer to a question from an user and i want show this combobox to allow the user to edit his answer
HTML :
<select class="form-control custom-select" name="uIsAdmin" id="uIsAdmin">
<option *ngFor="let useradmin of userIsAdmin">{{useradmin}}</option>
</select>
TypeScript:
ngOnInit() {
this.userIsAdmin=[
"yes", "no"
];
}