From 35d7393eaf84e469983d5d8a27c96bf9630c62da Mon Sep 17 00:00:00 2001 From: Vincent Ramiere Date: Tue, 15 Feb 2022 15:30:33 +0100 Subject: [PATCH 1/5] fusion apres trompage --- src/app/app.component.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 1768ea4..adcaf0e 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,4 +1,5 @@ import { Component } from '@angular/core'; +import { NavigationEnd, Router } from '@angular/router'; @Component({ selector: 'app-root', @@ -7,4 +8,12 @@ import { Component } from '@angular/core'; }) export class AppComponent { title = 'simpleat'; + constructor(private router:Router){ + this.router.events.subscribe(e=>{ + //console.log(e); + if(e instanceof NavigationEnd){ + console.log(e.url) + } + }) + } } From 63906bf345cc2726f6d46bd129cd3999f07c64da Mon Sep 17 00:00:00 2001 From: Vincent Ramiere Date: Wed, 16 Feb 2022 17:37:58 +0100 Subject: [PATCH 2/5] Suppression des components sur la page signin --- src/app/app.component.html | 6 +++--- src/app/app.component.ts | 7 +++++++ src/app/pages/signin/signin.component.html | 6 +++--- src/app/pages/signin/signin.component.scss | 5 ++--- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 9ed91c3..cc2f543 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 adcaf0e..e8da6fd 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -8,11 +8,18 @@ import { NavigationEnd, Router } from '@angular/router'; }) export class AppComponent { title = 'simpleat'; + dontShow: boolean = false; + constructor(private router:Router){ this.router.events.subscribe(e=>{ //console.log(e); if(e instanceof NavigationEnd){ console.log(e.url) + if (e.url == "/signin") { + this.dontShow = false; + } else { + this.dontShow = true; + } } }) } diff --git a/src/app/pages/signin/signin.component.html b/src/app/pages/signin/signin.component.html index ab233b4..0a30940 100644 --- a/src/app/pages/signin/signin.component.html +++ b/src/app/pages/signin/signin.component.html @@ -1,5 +1,5 @@