2017-07-04 09:42:00 +00:00
|
|
|
import {BrowserModule} from '@angular/platform-browser';
|
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import 'hammerjs';
|
|
|
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
|
|
|
import {AppComponent} from './app.component';
|
2017-07-08 16:12:52 +00:00
|
|
|
import {RouterModule, Routes} from '@angular/router';
|
2017-07-12 12:35:07 +00:00
|
|
|
import {LayoutComponent} from './core/components/layout/layout.component';
|
2017-07-08 16:12:52 +00:00
|
|
|
import {MailModule} from './main/apps/mail/mail.module';
|
|
|
|
import {ChatModule} from './main/apps/chat/chat.module';
|
|
|
|
import {ProjectModule} from './main/apps/dashboards/project/project.module';
|
2017-07-08 22:21:25 +00:00
|
|
|
import {CardedFullWidthModule} from './main/ui/page-layouts/carded/fullwidth/fullwidth.module';
|
2017-07-12 12:35:07 +00:00
|
|
|
import {LayoutService} from './core/services/layout.service';
|
|
|
|
import {NavbarComponent} from './core/components/layout/navbar/navbar.component';
|
|
|
|
import {ToolbarComponent} from './core/components/layout/toolbar/toolbar.component';
|
|
|
|
import {NavigationModule} from './core/components/navigation/navigation.module';
|
|
|
|
import {NavigationService} from './core/components/navigation/navigation.service';
|
|
|
|
import {SidenavComponent} from './core/components/sidenav/sidenav.component';
|
|
|
|
import {FuseMatchMedia} from './core/services/match-media.service';
|
|
|
|
import {NavbarToggleDirective} from './core/components/layout/navbar/navbar-toggle.directive';
|
|
|
|
import {NavbarService} from './core/components/layout/navbar/navbar.service';
|
|
|
|
import { ContentComponent } from './core/components/layout/content/content.component';
|
|
|
|
import { SharedModule } from './core/modules/shared.module';
|
2017-07-08 16:12:52 +00:00
|
|
|
|
|
|
|
const appRoutes: Routes = [
|
2017-07-12 12:35:07 +00:00
|
|
|
{
|
|
|
|
path : '**',
|
|
|
|
redirectTo: 'apps/dashboards/project'
|
|
|
|
}
|
2017-07-08 16:12:52 +00:00
|
|
|
];
|
2017-06-27 08:08:19 +00:00
|
|
|
|
|
|
|
@NgModule({
|
2017-07-04 09:42:00 +00:00
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
2017-07-08 16:12:52 +00:00
|
|
|
LayoutComponent,
|
2017-07-08 22:21:25 +00:00
|
|
|
ToolbarComponent,
|
2017-07-12 12:35:07 +00:00
|
|
|
NavbarComponent,
|
|
|
|
SidenavComponent,
|
|
|
|
NavbarToggleDirective,
|
|
|
|
ContentComponent
|
2017-07-04 09:42:00 +00:00
|
|
|
],
|
|
|
|
imports : [
|
2017-07-08 16:12:52 +00:00
|
|
|
SharedModule,
|
2017-07-04 09:42:00 +00:00
|
|
|
BrowserModule,
|
|
|
|
BrowserAnimationsModule,
|
2017-07-12 12:35:07 +00:00
|
|
|
RouterModule.forRoot(appRoutes),
|
2017-07-08 16:12:52 +00:00
|
|
|
NavigationModule,
|
|
|
|
MailModule,
|
|
|
|
ChatModule,
|
2017-07-08 22:21:25 +00:00
|
|
|
ProjectModule,
|
|
|
|
CardedFullWidthModule
|
2017-07-04 09:42:00 +00:00
|
|
|
],
|
2017-07-12 12:35:07 +00:00
|
|
|
providers : [NavigationService, LayoutService, FuseMatchMedia, NavbarService],
|
2017-07-04 09:42:00 +00:00
|
|
|
bootstrap : [AppComponent]
|
2017-06-27 08:08:19 +00:00
|
|
|
})
|
2017-07-04 09:42:00 +00:00
|
|
|
export class AppModule
|
|
|
|
{
|
|
|
|
}
|