Skip to content

Commit

Permalink
feat(pmp-web): add app routing module
Browse files Browse the repository at this point in the history
  • Loading branch information
Sikora00 authored and wjanaszek committed Jan 27, 2020
1 parent 460029a commit ed6b410
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions apps/pmp-web/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

const routes: Routes = [{ path: '', redirectTo: '/repositories', pathMatch: 'full' }];

@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule {}
3 changes: 2 additions & 1 deletion apps/pmp-web/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import { NxModule } from '@nrwl/angular';
import { StoreModule } from '@ngrx/store';
import { environment } from '../environments/environment';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { AppRoutingModule } from './app-routing.module';

@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
HttpClientModule,
BrowserAnimationsModule,
RouterModule.forRoot([]),
EffectsModule.forRoot([]),
NxModule.forRoot(),
StoreModule.forRoot(
Expand All @@ -36,6 +36,7 @@ import { StoreDevtoolsModule } from '@ngrx/store-devtools';
maxAge: 25, // Retains last 25 states
logOnly: environment.production // Restrict extension to log-only mode
}),
AppRoutingModule,
PmpWebRepositoryShellModule,
PmpWebUserShellModule
],
Expand Down

0 comments on commit ed6b410

Please sign in to comment.