I just a problem about how to set space to my value in html. I have code :
setValuetoComboBox(test:string, lvl:number){
let lastTest:string;
let spaceString:string;
// 
spaceString=' ';
for(var i = 1; i <= lvl; i++){
spaceString=spaceString + ' ';
}
lastTest = spaceString + test;
return lastTest;
}
In this code, i have   which to make space in html. and i have code in html:
<select [formControl]="parent" class="form-control">
<option value="-1">Root</option>
<option value="{{test.id}}" *ngFor="let test of parentValue">
{{setValuetoComboBox(test.name, test.lvl)}}
</option>
</select>
and the result is :
this the wrong result, i want space not code  . Can anyone find the answer about my problem ?