title: get Json with Typescript and Angular
body: <p>I have this interfaces and this class : </p>
  
  <pre><code>module AnimalPlanet{
       export interface Pet {
          Type: string;
          Name: string;
          Age: string;
          Color: string;
          SpecialCare: boolean;
          AvailableForAdoption: boolean;
          LDAdoption: boolean;
          History?: string;
          featured: boolean;
          newest: boolean;
          imageUrl: string;
          type: string;
          name: string;
      }
  
      export interface RootObject {
          pets: Pet[];
      }
  
    export class petsCtrl {
          dataFromServer : RootObject;
          constructor(private $http: ng.IHttpService) {
              this.$http.get('/app/pets/pets.json').then(function(response){
                 console.log(response.data);
                     return response.data;
  
                  });
          }
      }
  
      petsCtrl.$inject = ['$http'];
      app.controller("petsCtrl", petsCtrl);           
  }
  </code></pre>
  
  <p>I try to show in view some data, but something doesn t work with my get method.Maybe my class is wrong write . Can you help me please? Thnaks!</p>