I have AngluarJs dropdown, each option "onchange" will take navigate to another page. Here is the code:
<select class="qtDropDown"
ng-model="Suggested"
ng-change="changeOption()"
ng-options="option.name for option in suggested">
Js.
$scope.suggested = StrategyService.getPredefinedStrategies();
$scope.Suggested = $scope.suggested[0];
$scope.changeOption = function () {
var selectedStrategy = $scope.Suggested;
var queryString = selectedStrategy.name.split(' ').join('');
window.location.href(baseUrl+queryString);
};
The Problem here is When I click on the default selection which is $scope.suggested[0]; it is not navigating the user. Can anybody suggest where I am doing the mistake please ?