title: Unexpected token } jquery
body: <p>Sorry for this question, it is probably a very stupid mistake.
  I am sadly watching for a while but I can not figure out what's wrong.</p>
  
  <pre><code>app.controller('studentController', function ($scope, db) {
      $scope.items = null;
      db.getData().then(function (dataResponse) {
          $scope.items = dataResponse;
      }, function () {
          console.log('Shit son');
      })
  
      $scope.edit = function () {
          $http.post("api/api.php", {
              "categorie": $scope.categorie,
              "action": "edit",
              "id:"
          }).success(function (data, status, headers, config) {
              console.log("Update success");
          });
      }
  });
  </code></pre>
  
  <p>My console says that the error is on the line with the success function.</p>
  
  <p>Regards</p>