Webservice result like dictionary


#1

how we get value only 184 in name???

my service code is:

.controller(‘LoginCtrl’, function($scope, LoginService, $ionicPopup, $state,$http) {
$scope.data = {};

$scope.login = function() {
    debugger;
 
  $http.get("http://localhost/Login",{ params: { "Email": $scope.data.username, "Password": $scope.data.password ,"deviceid": "123"} })

.success(function(data, status, headers,config){
  console.log('data success');
  console.log(data); // for browser console
  $scope.firstname = data; // for UI
})
.error(function(data, status, headers,config){
  console.log('data error');
})
.then(function(result){
  things = result.data;
});

#2

For that you will need to convert xml to json, check the below link:


#3

can u give me any sample???


#4

http://jsfiddle.net/abdmob/gkxucxrj/1/