title: How to convert js to Ts of content explorer?
body: <p><a href="https://i.stack.imgur.com/oyMNX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oyMNX.png" alt="content explorer error"></a>    Converted the js file to ts file but still im facing error called content- 
      exlporer undefined .How to  use content explorer in angular2. </p>
  
  <pre><code>In js files javascript code 
      var hostURL = window.location.origin,
      baseURL = hostURL + window.location.pathname + "rest/";     
      var folderId, accessToken;
      var contentExplorer = new Box.ContentExplorer();
      var fileCollection = new Array();   
  </code></pre>
  
  <p>In ts file typescript code</p>
  
  <p>Declared all the variable of below parameters and added it into ngOninit.</p>
  
  <pre><code>  this.hostURL = window.location.origin;
    this.baseURL = this.hostURL + window.location.pathname + "rest/";
    const { ContentExplorer } = this.Box;
    this. contentExplorer = new ContentExplorer();
  </code></pre>