index.module.ts
955 Bytes
export class NoosferoApp {
static appName: string = "noosferoApp";
static init() {
angular.module(NoosferoApp.appName, ["ngAnimate", "ngCookies", "ngStorage", "ngTouch",
"ngSanitize", "ngMessages", "ngAria", "restangular",
"ui.router", "ui.bootstrap", "toastr",
"angularMoment", "angular.filter", "akoenig.deckgrid",
"angular-timeline", "duScroll", "oitozero.ngSweetAlert"]);
}
static addConfig(configFunc: Function) {
angular.module(NoosferoApp.appName).config(configFunc);
}
static addConstants(constantName: string, value: any) {
angular.module(NoosferoApp.appName).constant(constantName, value);
}
static addService(serviceName: string, value: any) {
angular.module(NoosferoApp.appName).service(serviceName, value);
}
static run(runFunction: Function) {
angular.module(NoosferoApp.appName).run(runFunction);
}
}