fuse-angular/src/app/app.module.ts

70 lines
2.7 KiB
TypeScript
Raw Normal View History

2017-07-12 14:34:32 +00:00
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
2017-07-04 09:42:00 +00:00
import 'hammerjs';
2017-07-12 14:34:32 +00:00
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppComponent } from './app.component';
import { RouterModule, Routes } from '@angular/router';
import { LayoutComponent } from './core/components/layout/layout.component';
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';
import { CardedFullWidthModule } from './main/ui/page-layouts/carded/fullwidth/fullwidth.module';
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';
2017-07-12 12:35:07 +00:00
import { ContentComponent } from './core/components/layout/content/content.component';
import { SharedModule } from './core/modules/shared.module';
2017-07-12 14:34:32 +00:00
import { FooterComponent } from './core/components/layout/footer/footer.component';
import { FuseMdSidenavHelperDirective, FuseMdSidenavTogglerDirective } from './core/directives/md-sidenav-helper/md-sidenav-helper.directive';
import { FuseMdSidenavHelperService } from './core/directives/md-sidenav-helper/md-sidenav-helper.service';
const appRoutes: Routes = [
2017-07-12 12:35:07 +00:00
{
path : '**',
redirectTo: 'apps/dashboards/project'
}
];
@NgModule({
2017-07-04 09:42:00 +00:00
declarations: [
AppComponent,
LayoutComponent,
ToolbarComponent,
2017-07-12 12:35:07 +00:00
NavbarComponent,
SidenavComponent,
NavbarToggleDirective,
2017-07-12 14:34:32 +00:00
FuseMdSidenavHelperDirective,
FuseMdSidenavTogglerDirective,
ContentComponent,
FooterComponent
2017-07-04 09:42:00 +00:00
],
imports : [
SharedModule,
2017-07-04 09:42:00 +00:00
BrowserModule,
BrowserAnimationsModule,
2017-07-12 12:35:07 +00:00
RouterModule.forRoot(appRoutes),
NavigationModule,
MailModule,
ChatModule,
ProjectModule,
CardedFullWidthModule
2017-07-04 09:42:00 +00:00
],
2017-07-12 14:34:32 +00:00
providers : [
NavigationService,
LayoutService,
FuseMatchMedia,
NavbarService,
FuseMdSidenavHelperService
],
2017-07-04 09:42:00 +00:00
bootstrap : [AppComponent]
})
2017-07-04 09:42:00 +00:00
export class AppModule
{
}