fusion apres trompage

This commit is contained in:
Vincent Ramiere 2022-02-15 15:30:33 +01:00
parent 34777f7a5e
commit 35d7393eaf
1 changed files with 9 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { NavigationEnd, Router } from '@angular/router';
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
@ -7,4 +8,12 @@ import { Component } from '@angular/core';
}) })
export class AppComponent { export class AppComponent {
title = 'simpleat'; title = 'simpleat';
constructor(private router:Router){
this.router.events.subscribe(e=>{
//console.log(e);
if(e instanceof NavigationEnd){
console.log(e.url)
}
})
}
} }