Hello,
I want to to display user details in other page after successfully login
My Controller
.factory('Post', function($resource) {
return $resource('api/view_order',{phone: "@phone"});
})
.controller('ViewCtrl', function($scope, Post, Authorization, $state) {
$scope.posts = Post.query();
$scope.postData = {};
$scope.newPost = function() {
var post = new Post($scope.postData);
post.$save();
$state.go('tab.account');
}
$scope.postData = Authorization;
})