<a href="#" ng-click="myNum(l.GroupID)">{{l.Desc}}</a>
I need it to change the value
$scope.mypage = 1; // Need to change here and submit.
$scope.myNum = function (num) {
$scope.mypage = num;
alert($scope.mypage);
$scope.todo.items.push({GroupID: num, done: false });
}
so if you was to change $scope.mypage = 1 to $scope.mypage = 2 you see the table change.