title: Service in AngularJS works just once (after refresh)
body: <p>When i use the function addact() for the first time(after refresh) it works.But, in after (in the next times) it returns an empty object in the callback until i refresh.</p>
  
  <p>response(first time) :</p>
  
  <pre><code>activité : Object {nom: "nouvelle activité", projetId: "2", id: "43", creationDate_: "03/06/2015", state_: "-1"…
  </code></pre>
  
  <p>response(after) : </p>
  
  <pre><code>activité : 
  </code></pre>
  
  <hr>
  
  <h2>JS</h2>
  
  <pre class="lang-js prettyprint-override"><code>$scope.addact = function (){
          $scope.newActivite.$setPristine;
          $scope.newActivite.nom="nouvelle activité";
          $scope.newActivite.projetId=$scope.projet.id;
          addActivite($scope.newActivite);
  }
  
  function addActivite(activite) {
    activiteService.addActivite(activite).success(function (data) {
      $scope.newActivite = data;
      listActivite();
      console.log("activité: ",$scope.newActivite);
    });
  }
  </code></pre>
  
  <h2>HTML</h2>
  
  <pre class="lang-html prettyprint-override"><code>&lt;section class="activite" ng-repeat="activite in activites"&gt;
  
      &lt;header class="activite-title"&gt;
          {{activite.nom}}
      &lt;/header&gt;
      &lt;section class="activite-body"&gt;
          &lt;div class="action" ng-repeat="action in activite.actions"  &gt;
              {{action.nom}}
          &lt;/div&gt;
      &lt;/section&gt;
  &lt;/section&gt;
  </code></pre>