diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 8ba4373b178bfc1c63e200e1eea17d696dc077e5..b1bdd874b3101b3f61ad0abe6d79c34c0fc3e122 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -59,7 +59,6 @@ export class AppComponent implements OnInit, OnDestroy, Observer { private appRef: ApplicationRef, private errorService: ErrorService, private router: Router, - private route: ActivatedRoute, private formulaireService: FormulaireService, private httpService: HttpService ) { diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 1650bd320089c47b16fc9ec5711e98c03b7624fc..6ac26ec7722394cf676132c23d1e453b966213c1 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -4,7 +4,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { MDBBootstrapModule } from "angular-bootstrap-md"; import { HttpClientModule } from "@angular/common/http"; import { FormsModule } from "@angular/forms"; // <-- NgModel lives here -// import { MdInputModule, MdDialogModule } from '@angular/material'; import { ChartModule } from "angular2-chartjs"; import { RouterModule, Routes } from "@angular/router"; import { NgxMdModule } from "ngx-md"; @@ -56,7 +55,7 @@ const appRoutes: Routes = [ { path: "list", component: CalculatorListComponent }, { path: "calculator/:uid", component: GenericCalculatorComponent }, { path: "setup", component: ApplicationSetupComponent }, - { path: "**", component: CalculatorListComponent } + { path: "**", redirectTo: "list", pathMatch: "full" } ]; @NgModule({