diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 388143a..644c2ab 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -20,7 +20,7 @@ const routes: Routes = [ { path: 'Deconnexion', redirectTo: 'home'}, {path: 'restaurants', canActivate: [AuthGuard], component: RestoPageComponent}, {path: 'page-not-found',component: PageNotFoundComponent}, - {path: 'admin', component: AdminPageComponent}, + {path: 'admin', component: AdminPageComponent}, {path: '**', redirectTo: 'page-not-found' } ]; diff --git a/src/app/app.component.html b/src/app/app.component.html index a555773..4b9776d 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,4 @@ - - + + - + diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 33e703c..be5ed0d 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -11,7 +11,7 @@ export class AppComponent { title = 'simpleat'; dontShow: boolean = false; - constructor(private router:Router, private apiBackService : ApiBackService){ + constructor(public router:Router, private apiBackService : ApiBackService){ this.router.events.subscribe(e=>{ //console.log(e); if(e instanceof NavigationEnd){ diff --git a/src/app/footer/footer.component.html b/src/app/footer/footer.component.html index f17079e..c0ed86d 100644 --- a/src/app/footer/footer.component.html +++ b/src/app/footer/footer.component.html @@ -1,4 +1,4 @@ -