₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,221 members, 8,429,887 topics. Date: Friday, 19 June 2026 at 03:14 PM

Toggle theme

Bartekziom5's Posts

Nairaland ForumBartekziom5's ProfileBartekziom5's Posts

1 (of 1 pages)

ProgrammingRe: Hybrid Application Using Ionic And Angulas Js Problem. by bartekziom5(op): 2:18pm On Feb 08, 2017
trytillmake:
this should be angular 1.0 right?
yes
ProgrammingRe: Hybrid Application Using Ionic And Angulas Js Problem. by bartekziom5(op): 2:18pm On Feb 08, 2017
pcguru1:
HTTP 500 could be any error, however it means it's an issue with your server, are you in control of the backend. if so whatever platform you are on you should be able to read logs of error, I am just hoping the backend is not in WordPress API if so, you're in for a long hellish ride.
An error occurred, please try again or contact the administrator. Error details: Cannot convert type 'double' to 'System.Collection this is what logs tells me. Im using backand as backend.
ProgrammingHybrid Application Using Ionic And Angulas Js Problem. by bartekziom5(op): 12:27pm On Feb 08, 2017
Hi
I'm trying to add points to my Ionic app database. To do that I'm getting existing points from database and add them to the points that I will input. After I want to update those summed points to my database.With my code the browser is giving me error: "server responded with status 500 critical exception" if you have any idea how please help me solve this problem.

(The $scope.points and $scope.input datatype is float) This is my code:

.controller('AppCtrl', function($scope, PointService) {
$scope.points = [];
$scope.input = {};



function getAll() {
PointService.getPoints()
.then(function (result) {
$scope.points = result.data.data;
});
}


$scope.updatePoints = function() {

$scope.sum = parseFloat($scope.points) + parseFloat($scope.input);

PointService.addPoints($scope.sum)
.then(function(result) {
$scope.input = {};
getAll();
});
}

1 (of 1 pages)