import AuthConfig = require('./auth.routes'); import Dectorators = require('../infrastructure/Dectorators/Components'); import authenticationService = require('./services/authentication.service'); import authenticationInterceptor = require('./services/authentication.interceptor'); import LoginComponent = require('./components/login-view/login'); @Dectorators.module('auth') export class Mod { constructor(angular: ng.IAngularStatic) { angular.module(Mod.$componentName, []) .factory(authenticationService.AuthenticationService.$componentName, authenticationService.AuthenticationService.$factory) .factory(authenticationInterceptor.AuthenticationInterceptor.$componentName, authenticationInterceptor.AuthenticationInterceptor.$factory) .controller(LoginComponent.Controller.$componentName, LoginComponent.Controller) .directive(LoginComponent.Directive.$componentName, LoginComponent.Directive.$factory) .config(AuthConfig.Config); } }