Converted the js file to ts file but still im facing error called content-
exlporer undefined .How to use content explorer in angular2.
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();
In ts file typescript code
Declared all the variable of below parameters and added it into ngOninit.
this.hostURL = window.location.origin;
this.baseURL = this.hostURL + window.location.pathname + "rest/";
const { ContentExplorer } = this.Box;
this. contentExplorer = new ContentExplorer();