niana sharma

niana sharma

  • NA
  • 7
  • 10.9k

How should I Reset Dropdown boxes on form in Angularjs

Apr 15 2019 6:33 AM
Hi...I'm working on an application using angular js. Most of my forms utilize Dropdown boxes. The first time the form loads all of the selects have their default values, but if I load the form again the Dropdown boxes retain the values from the previous load. I've tried calling $setPristine() but this doesn't reset the dropdowns.
 
How should I go about resetting the dropdowns on each load?

Answers (2)