improve request

This commit is contained in:
Peter Maquiran
2021-07-09 13:32:17 +01:00
parent cdece357e3
commit 1f34261db4
21 changed files with 74 additions and 23 deletions
@@ -112,10 +112,15 @@ export class GabineteDigitalPage implements OnInit {
ngOnInit() {
this.router.events.forEach((event) => {
if(event instanceof NavigationEnd && event.url == this.router.url) {
const pathname = window.location.pathname
this.router.events.forEach((event) => {
if(event instanceof NavigationEnd && event.url == pathname) {
this.checkRoutes();
this.LoadCounts();
console.log('yes', pathname)
} else {
console.log('not')
}
});