“Como navegar sem realoding angular” Respostas de código

Como navegar sem realoding angular

import { Location } from '@angular/common';

constructor(private location: Location) { }

this.location.replaceState('/profile');
blackfire

Como adicionar alterações sempre que o rotear navega para a página em angular

// Place import at the top
import { Router,NavigationStart} from '@angular/router';

//Place the code below inside your class
constructor(private router: Router){}

ngOnInit(){
   this.router.events.subscribe(event =>{
      if (event instanceof NavigationStart){
   		
      }
   })
}
Lively Lark

Respostas semelhantes a “Como navegar sem realoding angular”

Perguntas semelhantes a “Como navegar sem realoding angular”

Procure respostas de código populares por idioma

Procurar outros idiomas de código