“Como recarregar a mesma página no Angular 8” Respostas de código

Como recarregar um componente no angular

reloadComponent() {
  let currentUrl = this.router.url;
      this.router.routeReuseStrategy.shouldReuseRoute = () => false;
      this.router.onSameUrlNavigation = 'reload';
      this.router.navigate([currentUrl]);
  }
Courageous Chamois

Componente de recarga angular

reloadCurrentRoute() {
    let currentUrl = this.router.url;
    this.router.navigateByUrl('/', {skipLocationChange: true}).then(() => {
        this.router.navigate([currentUrl]);
    });
}
Courageous Chamois

Como recarregar a mesma página no Angular 8

No mames, simplemente usa el reload... Por qué en los foros siempre se las quieren lucr y terminan colocando vainas que ni sirven
Elegant Earthworm

Respostas semelhantes a “Como recarregar a mesma página no Angular 8”

Perguntas semelhantes a “Como recarregar a mesma página no Angular 8”

Procure respostas de código populares por idioma

Procurar outros idiomas de código