(injector: Injector)
| 21 | * Returns the Router instance from the given injector, or null if not available. |
| 22 | */ |
| 23 | export function getRouterInstance(injector: Injector): Router | null { |
| 24 | return injector.get(Router, null, {optional: true}); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Navigates the given router to the specified URL. |
no test coverage detected
searching dependent graphs…