Answers for "angular navigate back with router"

6

angular router navigate

// Here’s a basic example using the navigate method:

goPlaces() {
  this.router.navigate(['/', 'page-name']);
}

/*
I hope it will help you.
Namaste
*/
Posted by: Guest on May-20-2020
0

angular router return back

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

@Component({
  // component's declarations here
})
class SomeComponent {

  constructor(private _location: Location) 
  {}

  backClicked() {
    this._location.back();
  }
}
Posted by: Guest on May-05-2020
0

angular router navigate base href

import { APP_BASE_HREF } from '@angular/common';
Posted by: Guest on September-10-2020

Code answers related to "angular navigate back with router"

Code answers related to "Javascript"

Browse Popular Code Answers by Language