Use of the ng-bind directive in html tag "option"

1

I have a select tag and within the select a tag option, I need to use the ng-bing directive, but so far it does not show me any information.

This is my code:

 <select id="SecretQuestion" 
    ng-model="employeeToSave.questionID" 
    ng-options="item.id as item.question for item in questionData">

    <option value=""><p>ng-bind="'_chooseQuestion_' | translate"></p></option>   
 </select>
    
asked by Edgar Conrado 22.02.2016 в 17:50
source

1 answer

5

Put the ng-bind directly in the option tag. One option does not support other tags as children .

    
answered by 22.02.2016 / 18:01
source