import {bootstrap} from "ng-forward"; import {noosferoModuleConfig} from "./index.config"; import {noosferoAngularRunBlock} from "./index.run"; import {MainComponent} from "./main/main.component"; import {AuthEvents} from "./login/auth-events"; declare var moment: any; // FIXME see a better way to declare template modules for dev mode try { angular.module('noosfero.templates.app'); } catch (error) { angular.module('noosfero.templates.app', []); } try { angular.module('noosfero.templates.plugins'); } catch (error) { angular.module('noosfero.templates.plugins', []); } angular.module('noosfero.init', ['noosfero.templates.app', 'noosfero.templates.plugins']). config(noosferoModuleConfig). run(noosferoAngularRunBlock). constant("moment", moment). constant("AuthEvents", AuthEvents); bootstrap(MainComponent);