File

src/lib/router-service.service.ts

Index

Properties
Methods

Constructor

constructor(router: Router)
Parameters :
Name Type Optional
router Router No

Methods

navigate
navigate(input)
Parameters :
Name Optional
input No
Returns : void

Properties

Public router
Type : Router
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';

@Injectable({
  providedIn: 'root'
})
export class RouterServiceService {

  constructor(public router: Router) { }

  navigate(input) {
    // this.router.navigate(url)
    this.router.navigate([input.data.url], { queryParams: input.data.queryParams, queryParamsHandling: "merge" })
  }
}

results matching ""

    No results matching ""