Posts by Tarsis • 3 points
1 post
-
0
votes1
answer147
viewsQ: Angularjs reset to default option with ngOption
When activating the addAgent method the item is added but the selected option continues and the default option should be selected again. Controller $scope.addAgent = function (selectedAgent) { if…