Answers for "angular router back"

5

angular [routerlink]

content_copy
      
      <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
  link to user component
</a>
Posted by: Guest on March-06-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

Code answers related to "Javascript"

Browse Popular Code Answers by Language