I'm pretty new to angular and really struggling with understanding the syntaxes for $http.get and $http.get. What I want to do is change the data in my JSON file when the user leaves a rating in the upvote/downvote system in the bottom of [my web app](https://ad667068912adccb975eee14116cefd5fb123f74.googledrive.com/host/0B_tg4it67g1bWWFHV3hnaXVEcGs/). The relevant part of my current code is under:

**app.js**

```
.controller('rateCtrl', function ($scope, $http) {
  $http.get('rating.json').success(function(data) {
      $scope.likes = data.likes;
      $scope.dislikes = data.dislikes;
      $scope.addLike = function () {
          $scope.likes = $scope.likes + 1;
          data.likes = data.likes + 1;
      };
      $scope.addDislike = function () {
          $scope.dislikes = $scope.dislikes + 1;
          data.likes = data.likes + 1;
      };
  });
});

```

**index.html**

```
<div class="content" id="sub-section">
  <div class="text-area">
      <div class="text" style="color:#3A3A3A">
          Text ...
      </div>
  </div>
  <div class="small"></div>
  <div>
      <table style="text-align:center; font-size:1em" class="table-responsive table" ng-controller="rateCtrl">
          <tr>
              <td>Jeg likte den!</td>
              <td>Jeg likte den ikke!</td>
          </tr>
          <tr>
              <td><p class="likes" ng-click="addLike()">+{{likes}}</p></td>
              <td><p class="dislikes" ng-click="addDislike()">-{{dislikes}}</p></td>
          </tr>
      </table>
  </div>

```

**rating.json**

```
{
"likes": 12,
"dislikes": 0
}

```

I would be very grateful if anyone could give me a code example for how I can change the amount of likes in the JSON file when a user likes, and vice versa for dislikes.