Skip to content

Instantly share code, notes, and snippets.

View off-sky's full-sized avatar

offsky off-sky

View GitHub Profile
@off-sky
off-sky / abstract-route-service.ts
Last active June 9, 2021 06:44
Abstract route service implemented by concrete routes
export abstract class AbstractRouteService<D> {
constructor(private routerFacade: RouterFacade) {
}
/**
* Leave to implementing classes
*/
protected abstract getRequest(data: D, replaceUrl: boolean): NavigationRequest;
protected abstract parseRouterState(routerState: RouterStateUrl): D;