i have a grails app and i am trying to use angular for the front end work.
suppose i have a button on my page, say, 'Add Request'. on click of this button, i call an angular function. but i am not able to figure out, inside this angular function, how do i call a 'Grails controller' and method inside this grails controller.
// add Request data
$scope.addRequest = (function addRequest() {
console.log('$scope.request ' +$scope.request);
var requestInfo = new String($scope.request);
requestInfo.$save();
$scope.request = {};
});