title: Load Config JSON File In Angular 2
body: <p>I want to load Constant File in Angular 2(which is a Normal TypeScript File) having WebAPI EndPoints.
  In Angular1.x. we used to have constants for the same.
  How in Angular 2 I can Implement the Same?</p>
  
  <p>I have created the .ts file.My main concern lies in how to load the file beforehand every Other class File loads. </p>
  
  <p>.ts file :</p>
  
  <pre><code>export class testAPI {
       getAPI = "myUrl";
  }
  </code></pre>
  
  <p>In service file I am using the same by doing Normal Import:</p>
  
  <pre><code>constructor(private http: Http) { 
  
        //console.log(this.test);
        console.log(this.testing.getAPI);
        //this.test.load();
      }
  </code></pre>
  
  <p>I am getting the Console as Undefined.(Must be because my Service class is loading before API Class).</p>
  
  <p>Thanks in Advance.</p>