Browse Source

web-ui: Add AppRoutingModule

scalafmt-draft
Alexis Hernandez 7 years ago
parent
commit
1161ca1d1c
  1. 18
      web-ui/src/app/app-routing.module.ts
  2. 2
      web-ui/src/app/app.module.ts

18
web-ui/src/app/app-routing.module.ts

@ -0,0 +1,18 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{ path: '**', redirectTo: '' }
];
@NgModule({
imports: [
RouterModule.forRoot(routes)
],
exports: [
RouterModule
]
})
export class AppRoutingModule {
}

2
web-ui/src/app/app.module.ts

@ -5,6 +5,7 @@ import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppRoutingModule } from './app-routing.module';
import { AlertModule, BsDropdownModule, CollapseModule, TooltipModule, ModalModule } from 'ngx-bootstrap';
import { TranslateModule } from '@ngx-translate/core';
import { ToastrModule } from 'ngx-toastr';
@ -18,6 +19,7 @@ import { AppComponent } from './app.component';
AppComponent
],
imports: [
AppRoutingModule,
AlertModule.forRoot(),
BsDropdownModule.forRoot(),
CollapseModule.forRoot(),

Loading…
Cancel
Save