This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathapp.module.ts
56 lines (53 loc) · 1.89 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MdoButtonModule } from '@ctrl/ngx-github-buttons';
import { RouterModule, Routes } from '@angular/router';
import { AppComponent } from './app.component';
import { ExampleMenuComponent } from './example-menu.component';
import { ContextMenuModule } from '../lib/context-menu.module';
import { SimpleComponent } from './simple/simple.component';
import { SimpleMenuComponent } from './simple/simple-menu.component';
import { AnimatedMenuComponent } from './simple/animated-menu.component';
import { MultipleMenuComponent } from './multiple/multiple-menu.component';
import { MultipleComponent } from './multiple/multiple.component';
import { SubmenuComponent } from './submenu/submenu.component';
import { SubmenuMenuComponent } from './submenu/submenu-menu.component';
import { SubSubmenuMenuComponent } from './submenu/subsubmenu-menu.component';
const routes: Routes = [
{ path: 'simple', component: SimpleComponent },
{ path: 'multiple', component: MultipleComponent },
{ path: 'submenu', component: SubmenuComponent },
{ path: '**', redirectTo: 'simple' },
];
@NgModule({
declarations: [
AppComponent,
ExampleMenuComponent,
SimpleComponent,
SimpleMenuComponent,
AnimatedMenuComponent,
MultipleMenuComponent,
MultipleComponent,
SubmenuComponent,
SubmenuMenuComponent,
SubSubmenuMenuComponent,
],
imports: [
BrowserModule,
ContextMenuModule,
BrowserAnimationsModule,
MdoButtonModule,
RouterModule.forRoot(routes),
],
bootstrap: [AppComponent],
entryComponents: [
ExampleMenuComponent,
SimpleMenuComponent,
AnimatedMenuComponent,
MultipleMenuComponent,
SubmenuMenuComponent,
SubSubmenuMenuComponent,
],
})
export class AppModule {}