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