UNPKG

moh-common-lib

Version:

A library of Angular components, services, and styles for B.C. Government Ministry of Health (MoH).

23 lines (22 loc) 772 B
/** * The abstract class for our route guard service. You MUST setup the NgModule * to provide your application's service in place of AbstractGuardService. * * Your application's load page guard service can do whatever it wants as long as it * implements these methods. * * More information on setup can be found in @see LoadPageGuardService. * * @example * * providers: [ * ... * { provide: AbstractPageGuardService, useExisting: EnrolService }, * LoadPageGuardService * ] * */ export declare abstract class AbstractPageGuardService { abstract canBypassGuards(): boolean; abstract canNavigateToUrl(url: string): boolean; }