Lets say you have an array that is rendered in a ul with an li for each element and a property on the controller called selectedIndex.
ul
li
selectedIndex
This Month All Time
$scope.campaign_range = "all"; $scope.change_range = function(range) { if (range === "all") { $scope.campaign_range = "all" } else { $scope.campaign_range = "thismonth" } };