Set one option, inside your select like so... <option value="">Please select..</option>
You can have one available to use, like this. And then if you're still pull the empty white space, give yourself an ng-model on the select and then set your ng-model to null in you js. On Friday, June 6, 2014 12:29:12 PM UTC-5, Jay wrote: > > Having trouble in setting up the default value for the drop down when > AngularJS/ng-repeat/custom directive + Select2 JS is used. > > 1. I avoided using ng-options as the directive priority is 0. > 2. I tried setting the priority for the custom directive 'select2Directive' > to a number less than 1000, but still no luck. > > Plunker @ http://plnkr.co/edit/Csy5FqDSQbErTm2fNPac. Appreciate any help. > Thanks. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
