aodb/app/authentication/auth.mod.ts
Martin Donnelly afe73b5baa upload
2016-12-22 00:00:06 +00:00

20 lines
1.0 KiB
TypeScript

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);
}
}