How do I set a prompt on a select using ng-options?

前端 未结 1 1304
情书的邮戳
情书的邮戳 2021-01-19 17:16

I have a select that uses ng-options to populate the select as follows:


   
   


You could also change the text based on the condition:-

  

You can also remove it from DOM if it has already a selected value.

   

0 讨论(0)
提交回复
热议问题