java - Passing $routeParams from angularjs to spring controller -


this have in angularjs controller

.when("/mutualfriends:topicid", {templateurl: "mutualfriends", controller: "conmfriends"})  app.controller('conmfriends',function($scope,$routeparams){ $scope.otherid = $routeparams.topicid; }); 

this spring controller

@requestmapping(value="/controlerm", method = requestmethod.get)   public modelandview controlerm(httpservletrequest request,  httpservletresponse response) throws exception { modelandview model = null; session=request.getsession(true); user = (user) session.getattribute("user");  list<ends1> ends=(list<ends1>) ifriendlistservice.getends(user.getid(),5);     session.setattribute("mutualfriends", mutualfriends); model = new modelandview("ends");  return model; 

i able fetch topicid angularjs page in angularjs controller (with $scope.otherid), unable pass value spring controller, redirecting new page.

please help.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -