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
| import { NgModule } from '@angular/core';
| import { Routes, RouterModule } from '@angular/router';
|
| import { SharedModule } from '@shared/shared.module';
|
| import { TableStandardComponent } from './standard/standard.component';
| import { RandomUserService } from './randomUser.service';
| import { TableFullComponent } from './full/full.component';
|
| const routes: Routes = [
| { path: 'standard', component: TableStandardComponent },
| { path: 'full', component: TableFullComponent }
| ];
|
| @NgModule({
| imports: [
| SharedModule,
| RouterModule.forChild(routes)
| ],
| providers: [ RandomUserService ],
| declarations: [
| TableStandardComponent,
| TableFullComponent
| ],
| exports: [
| RouterModule
| ],
| entryComponents: [
|
| ]
| })
| export class TablesModule { }
|
|