After creating the appRun.ts file, I included references to app.ts and EnumsService.ts:
/// <reference path="app.ts"/>
/// <reference path="services/EnumsService.ts"/>
app.run(['$rootScope', appRun]);
function appRun($rootScope) {
$rootScope.Action = Action;
$rootScope.AuthTabs = AuthTabs;
$rootScope.UserTestStatus = UserTestStatus;
$rootScope.Network = Network;
$rootScope.TS = TS;
}
In EnumsService.ts, I defined an enum called Action:
enum Action {
None,
Registering,
Authenticating
}
However, when my Javascript AppRun.js was created, it didn't recognize the Action enum:
/// <reference path="app.ts"/>
/// <reference path="services/EnumsService.ts"/>
app.run(['$rootScope', appRun]);
function appRun($rootScope) {
$rootScope.Action = Action;
$rootScope.AuthTabs = AuthTabs;
$rootScope.UserTestStatus = UserTestStatus;
$rootScope.Network = Network;
$rootScope.TS = TS;
}
//# sourceMappingURL=appRun.js.map