I have a issue with AngularJS and very basic math. When I have picked the data from my firebase, I want to addition them.
Here's my code:
$scope.project.$on('loaded', function(value) {
console.log(value); // data loaded from Firebase
console.log(value.name); // subset of the returned value
angular.isNumber(value.firstmatch);
angular.isNumber(value.secondmatch);
$scope.project.points = ((value.firstmatch) + (value.firstmatch));
And this outputs 11. And yes, the firstmatch value is 1.
Thanks!