On my Dashboard
page, I have an Object. When a user clicks on the Details
Page from the Dashboard, it should redirect to the Details
page. I am looking to pass the JSON Object from the Dashboard Controller
to the Details Controller
. Is there a way to do this without utilizing Angular JS
Service or factory
?
myApp.controller('dashBoardController', ['$scope', function($scope) {
$scope.detailsPage = function(Object){
// I want this object to be available in the details page controller
$location.path('/detailsPage');
};
}]);
myApp.controller('detailsPageController', ['$scope', function($scope) {
// require Object data here
}]);