I have the following typescript class definition:
export class Module {
private _app: ng.IModule;
constructor(public name: string, public deps: string[]) {
this._app = angular.module(name, deps);
}
get module(): ng.IModule {
return this._app;
}
}
I have to import this class in multiple files that's why I don't want to use the full path in the import like this:
import {Module} from 'app/blocks/utils/module';
I'd rather use an alias like 'module' so I just have to update in one place if the file location change in the future.
import {Module} from 'module';
I am not using the module keyword because systemjs is resolving the modules for me. My systemjs config contains a definition for my file: System.config({ ... map: { 'module': 'app/blocks/utils/module' }, ... })
Thanks in advance!