[AngularJS] Re: how to pass a object to a new page in angulatjs

2014-02-28 Thread duck
this not fully fleshed-out code just >>> providing the idea >>> var indexOfObject = MyService.indexOf($routeParams.id); >>> $scope.object = MyService[indexOfObject]; >>> >>> So in essence you are passing references not objects, and storing shared &

[AngularJS] how to pass a object to a new page in angulatjs

2014-02-27 Thread duck
I have a list of objects in the list view, now I want to click any one object to take me a new page without fetching data from server, so the object data can be passed to the new page. I can use angularjs $routeParams to pass individual parameter, but not whole object. if I use a individual p