@koalarx/ui
Version:
Koala UI is a modern and accessible component library designed to speed up interface development in Angular projects. With simple integration and clear documentation, you can easily build robust and visually appealing applications.
23 lines (19 loc) • 871 B
JavaScript
import * as i0 from '@angular/core';
import { inject, Injectable } from '@angular/core';
import { Authorization } from '@koalarx/ui/shared/services';
class AuthGuard {
authService = inject(Authorization);
canActivate() {
return this.authService.isAuthenticated();
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AuthGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AuthGuard });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AuthGuard, decorators: [{
type: Injectable
}] });
/**
* Generated bundle index. Do not edit.
*/
export { AuthGuard };
//# sourceMappingURL=koalarx-ui-core-guards.mjs.map