Set HTML space code in Typescript angular 2
<p>I just a problem about how to set space to my value in html.
I have code :</p>

<pre><code>    setValuetoComboBox(test:string, lvl:number){
    let lastTest:string;
    let spaceString:string;
    //&amp;#160;
    spaceString='&amp;#160';
    for(var i = 1; i &lt;= lvl; i++){
        spaceString=spaceString + '&amp;#160';
    }
    lastTest = spaceString + test;
    return lastTest;
}
</code></pre>

<p>In this code, i have &amp;#160 which to make space in html. and i have code in html:</p>

<pre><code>                                    &lt;select [formControl]="parent" class="form-control"&gt;
                                    &lt;option value="-1"&gt;Root&lt;/option&gt;
                                    &lt;option value="{{test.id}}" *ngFor="let test of parentValue"&gt;
                                        {{setValuetoComboBox(test.name, test.lvl)}}
                                    &lt;/option&gt;
                                &lt;/select&gt;
</code></pre>

<p>and the result is :</p>

<p><a href="https://i.stack.imgur.com/CLUNh.png" rel="nofollow noreferrer">The Result</a></p>

<p>this the wrong result, i want space not code &amp;#160. Can anyone find the answer about my problem ?</p>