fusion apres trompage
This commit is contained in:
parent
34777f7a5e
commit
35d7393eaf
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue