Search Posts

Author: tinyCoder

select-ui reset dropdown programatically

I’m new to AngularJS, I have 2 dynamic select boxes, changing the first affects the options of the second, but the problem is that the second dropdown select keeps the last item selected from the previous select operation, so I need to clear it before appending the new items. What i did was: carsCtrl.models.selected = undefined; as i saw in Angular example: vm.clear = function() { vm.person.selected = undefined; vm.address.selected = undefined; = undefined; […]