Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

257
Views
Show default option different to value="" on <select> AngularJS

I am setting two different extra options from controller array on my html file like this.

 <select
      class="custom-select"
      name="facilityId"
      ng-model="data.general.facilityId"
      ng-model-options="{ getterSetter: true, updateOn: 'default blur', debounce: { 'default': 500, 'blur': 0 } }"
  >

    <option value="">all options</option>
    <option value="0">default option</option>
    <option ng-repeat="facility in facilityOptions" value="{{facility.id}}>{{facility.name }}</option>

 </select>

I need to set "default option" as the selected one but in any occasion "all options" is set as selected by AngularJS I guess, previously used ng-selected condition and ng-init assigning a value.

AngularJS 1.5.11

Any ideas? Thanks in advance

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!