title: Angular add mock JSON Data
body: <p>I'm new to angular and buildig an application that reads data from a API and renders it in an HTML table. For the moment I m trying to see how I can manipulate the table data and thereby changing the model (JSON). I understand this would need API support to make those changes, but for the moment I'd like to try this with mock data inside the Javascript.</p>
  
  <p>Can you please look into this Fiddle code and tell me how I can do that ?</p>
  
  <pre><code>    (function() {
        var app = angular.module('myApp', []);
  
        app.controller('PeopleController', function($scope, $http) {
          $http({
            url: "https://api.myjson.com/bins/584d5",
            method: "GET"
          }).success(function(data,status) {
            $scope.people = data.people;
          });
        });
      })();
  </code></pre>
  
  <p>Thanks</p>
  
  <p><a href="http://codepen.io/silican/pen/JXEvJY" rel="nofollow">Code Pen Link</a></p>