ngx-foresight
Version:
<p align="center"> <img src="https://akshykhade.github.io/ngx-foresight/logo.svg" width="305px"> </p> <br/> <p align="center"> <a href="https://www.npmjs.com/package/ngx-foresight"> <img src="https://img.shields.io/npm/v/ngx-foresight.svg?style=fo
14 lines (13 loc) • 590 B
TypeScript
import { Router, UrlTree, UrlSegment } from '@angular/router';
import * as i0 from "@angular/core";
export declare class PrefetchRegistry {
private router;
private trees;
constructor(router: Router);
add(tree: UrlTree): void;
shouldPrefetch(url: string): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<PrefetchRegistry, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<PrefetchRegistry>;
}
export declare function containsTree(containee: UrlTree, container: UrlTree): boolean;
export declare function equalPath(as: UrlSegment[], bs: UrlSegment[]): boolean;