@linid-dm/directory-manager-client-core
Version:
Core package by providing a set of angular components for the Directory Manager app.
21 lines (20 loc) • 805 B
TypeScript
import { CanActivate } from '@angular/router';
import { Actions, Store } from '@ngxs/store';
import { ToastrService } from 'ngx-toastr';
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
/**
* This guard class allows to control that user is trying to access
* to an authorized route from the main page when he writes it in the url bar
*/
export declare class HomepageGuard implements CanActivate {
private _store$;
private _actions$;
private _toastrService;
private _allActionsSucces$;
private _guard$;
constructor(_store$: Store, _actions$: Actions, _toastrService: ToastrService);
canActivate(): Observable<boolean>;
static ɵfac: i0.ɵɵFactoryDeclaration<HomepageGuard, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<HomepageGuard>;
}