I'm currently working on a project where I've created a class called UIManager to manage UI changes...
/// <reference path="../../typings/jquery/jquery.d.ts" />
/// <reference path="../../typings/materialize-css/materialize-css.d.ts" />
export class UIManager {
constructor() {
}
public InitPanes(): void {
$(".sideNav").sideNav({
menuWidth:350
});
}
}
After implementing it in App.ts and running the solution, I encountered an error in the debug console stating "UIManager is undefined".
/// <reference path="../typings/jquery/jquery.d.ts" />
/// <reference path="UIManager/UIManager.ts" />
import * as UI from "UIManager/UIManager";
class App {
constructor() {
let UIManager = new UI.UIManager();
UIManager.InitPanes();
}
}
$(document).ready(() => {
let app = new App();
});
As I am still new to TypeScript, any assistance or guidance would be greatly appreciated. Thank you.