Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Show user details after login

$
0
0

@MohammedSalah wrote:

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;
})

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>