title: Angular 2 best practices to get data from json or api
body: <p>I have been trying to start using Angular2, but it looks that it has been changing a lot so I am not very sure if the way im doing is a good manner to do it or not. </p>
  
  <p>I created a service to get data from a json, my objetive was to simulate a webapi response or something like that, so in my service I created a method just like this </p>
  
  <pre><code>loadJsonData() {
  
      return this.http.get('./assets/MyData.json').map(res =&gt; res.json());
    }
  </code></pre>
  
  <p>I call this method since my main component OnInit, </p>
  
  <pre><code>ngOnInit() {
  
         var games = new Array(data.games.length);
          for (var index = 0; index &lt; data.games.length; index++) {
              games[index] = data.games[index].title;
          }
          this.games = games;
        });
    }
  </code></pre>
  
  <p>It works pretty good, but I would like to know the best practices to do this kind of process and it would be awesome if you have a recent guide to create a CRUD using angular, thank you everyone for your time to answer! </p>