Pool module refactor
This commit is contained in:
parent
ea73b94e24
commit
c266c7602b
12 changed files with 50 additions and 22 deletions
|
|
@ -1,11 +1,17 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
import { LayoutComponent } from 'src/components/layout/layout.component';
|
||||
|
||||
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', component: LayoutComponent, pathMatch: 'full' },
|
||||
{ path: '**', component: LayoutComponent, pathMatch: 'full' }
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => import('../modules/pool/pool.module').then(m => m.PoolModule)
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
loadChildren: () => import('../modules/pool/pool.module').then(m => m.PoolModule)
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
|
|
|||
|
|
@ -3,23 +3,16 @@ import { NgModule } from '@angular/core';
|
|||
|
||||
import { AppRoutingModule } from './app-routing.module';
|
||||
import { AppComponent } from './app.component';
|
||||
import { HomeComponent } from '../components/home/home.component';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
import { LayoutComponent } from '../components/layout/layout.component';
|
||||
import { PoolService } from 'src/shared/pool.service';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
AppComponent,
|
||||
HomeComponent,
|
||||
LayoutComponent
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
AppRoutingModule,
|
||||
ReactiveFormsModule
|
||||
AppRoutingModule
|
||||
],
|
||||
providers: [PoolService],
|
||||
providers: [],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
export class AppModule { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue