(router: Router, url: string)
| 29 | * Throws if the provided router is not an Angular Router. |
| 30 | */ |
| 31 | export function navigateByUrl(router: Router, url: string): Promise<boolean> { |
| 32 | if (!(router instanceof Router)) { |
| 33 | throw new Error('The provided router is not an Angular Router.'); |
| 34 | } |
| 35 | return router.navigateByUrl(url); |
| 36 | } |
no test coverage detected
searching dependent graphs…