@rxap/authorization
Version:
Provides an Angular module and directives to manage authorization and permissions in your application. It allows you to control the visibility and enabled state of UI elements based on user permissions. The package includes an `AuthorizationService` to ch
17 lines (16 loc) • 915 B
TypeScript
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
import { AuthorizationService } from './authorization.service';
import * as i0 from "@angular/core";
export declare class HasWritePermissionDirective implements OnInit, OnDestroy {
private readonly authorization;
protected readonly cdr: ChangeDetectorRef;
private readonly scope;
identifier: string;
readonly: boolean;
private _subscription?;
constructor(authorization: AuthorizationService, cdr: ChangeDetectorRef, scope?: string | null);
ngOnInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<HasWritePermissionDirective, [null, null, { optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<HasWritePermissionDirective, "[rxapHasWritePermission]", never, { "identifier": { "alias": "rxapHasWritePermission"; "required": true; }; }, {}, never, never, true, never>;
}