What is the best way to pass message in the below scenario.
In the success scenario of $scope.p.$save, the result contains a message (res.message
$scope.p.$save
res.message
I don't believe there's a way to do this default to AngularJS. Your best bet would just be passing the message (encoded) through a query string.