fusion apres trompage

This commit is contained in:
Vincent Ramiere 2022-02-15 15:30:33 +01:00
parent 34777f7a5e
commit 35d7393eaf

View File

@ -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)
}
})
}
}