title: add data to a local JSON file in angularJS
body: <p>I have a question please,is it possible to add a Data to a local JSON file,I tried with this code:</p>
  
  <p>Controller.js:</p>
  
  <pre><code>  $scope.creerOperation= function(article) {
      article.codeOperation = $scope.articleCourante.codeOperation;
      article.operation = $scope.articleCourante.operation;
  
      $http
         .post("./json/Options/create.json",article)
          .success(
          function(newArticle) {$scope.annulerAjout();});}
  </code></pre>
  
  <p>MyView.html:</p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;input class="form-control" ng-model="articleCourante.codeOperation" /&gt;
      &lt;input class="form-control" ng-model="articleCourante.operation" /&gt; 
      &lt;button ng-click="creerOperation(articleCourante)"&gt;Add&lt;/button&gt;                     
  &lt;/div&gt;
  </code></pre>
  
  <p>create.json:</p>
  
  <pre><code> {
          "codeOperation": "codeOperation1",
          "operation": "operation1",
      }
  </code></pre>
  
  <p>but any data I have put in input Texts doesn't be added in create.json file
  any help please,how can I correct my code to do that??
  thanks for help</p>