Я хочу перенаправить на другую страницу в зависимости от выбранной опции, но это даже не запись в консоли.Я тоже пытался использовать ng-change
HTML:
<select ng-options="option for option in selectCate" ng-
model="selectedCate" ng-click="selectedCateChange()">
</select>
JS:
$scope.selectCate = ['Amenities', 'Attractions'];
$scope.selectedCate = $scope.selectCate[0];
$scope.selectedCateChange = function () {
if ($scope.selectedCateChange == "Amenities")
{
console.log("aa")
}
else if ($scope.selectedCateChange == "Attractions")
{
$window.location.href = '#!/Attractions'
}
}