title: AngularJS with RESTful MySQL
body: <p>I use AngularJS with RESTful WebService using MySQL database. I get data from database to view page. But my problem is: I can't sum in function. </p>
  
  <p>Problem Code:</p>
  
  <pre><code>$scope.currentAssetsSum = function () {
  
  //return parseFloat($scope.currentAssetsData.cash_hand) + parseFloat($scope.currentAssetsData.bank_account);
  
  return $scope.currentAssetsData['cash_hand'] + $scope.currentAssetsData['bank_account'];
  
  };
  </code></pre>
  
  <hr>
  
  <p><a href="https://i.stack.imgur.com/oxfnU.png" rel="nofollow noreferrer">JAR List:</a></p>
  
  <hr>
  
  <p>MySQL Database:</p>
  
  <pre><code>    CREATE TABLE  current_assets (
  id int(10) unsigned NOT NULL auto_increment, 
  cash_hand double NOT NULL, 
  bank_account double NOT NULL, 
  PRIMARY KEY  (id));
  </code></pre>
  
  <p>NetBeans Web Application Project:</p>
  
  <p><a href="https://github.com/hellodewdrop/AngularJS_RESTful_MySQL" rel="nofollow noreferrer">https://github.com/hellodewdrop/AngularJS_RESTful_MySQL</a></p>