src/lib/router-service.service.ts
Properties |
|
Methods |
constructor(router: Router)
|
||||||
Defined in src/lib/router-service.service.ts:7
|
||||||
Parameters :
|
navigate | ||||
navigate(input)
|
||||
Defined in src/lib/router-service.service.ts:11
|
||||
Parameters :
Returns :
void
|
Public router |
Type : Router
|
Defined in src/lib/router-service.service.ts:9
|
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" })
}
}