In angular ng-repeat breakes the options into options again

Discussão em 'Angular' iniciado por SR3599, Outubro 30, 2024.

  1. SR3599

    SR3599 Guest

    my js array is ["standard", "premium"]

    When I click on the dropdown option for the first time , its showing option as standard and premium. After choosing any one of them the choosen values is not displayed in the box. If I do click again (assume I have selected standard in the first go)then its giving options as s,t,a,n,d,a,r,d .

    my code is

    <select id = "red", ng-model="red" class= "form-select">
    <option ng-repeat=" r in red">[[red]]</option>
    </select>

    Continue reading...

Compartilhe esta Página