Closed
Description
I think it would be great if when creating a module it would only create a global variable for that module if something tangible is exported. Whenever I use Typescript with angular I have no need for the global variable.
module a{
export interface IController{
}
angular.module("module").controller("controller", Controller);
class Controller{
}
}
Nothing tangible is exported here so there is no need to create a global variable of "a".
The nice thing is I can still use the interfaces at design time because of the module and interface. But at runtime there is no need for the javascript variable to exist as it will just be an empty object anyway.