I have to send the parameter through the input form to the API link.
This is my selecct
<select ng-model="selectedDay" ng-change="changedValue(selectedDay)" style="width: 117px;">
<option ng-repeat="x in filterDays" value="{{x.showDays}}">{{x.showDays}}</option>
</select>
And this is my controller
$scope.filterDays = [
{ showDays: "Last month", value: 30 },
{ showDays: "Last 14 days", value: 14 },
{ showDays: "Last 7 days", value: 7 }
];
$scope.show = $scope.filterDays[0].value;
$scope.changedValue = function (selectedDay) {
$scope.show = selectedDay;
}
$http.get("http://localhost:8080/api/overviewStatisticTeam?days=" + $scope.show)
I have problem with sending paramter to API, when I change value on my select. Thanks for help