angular-ru-sdk
angular-ru-sdk copied to clipboard
🚀 - add NgDestroy
Which @angular-ru/* package(s) are relevant/releated to the feature request?
cdk
Description
@Directive({
selector: '[initialFocus]',
providers: [NgDestroy]
})
export class InitialFocusDirective implements AfterViewInit, OnDestroy {
constructor(private readonly destroy$: NgDestroy) {}
instead
@Directive({ selector: '[initialFocus]' })
export class InitialFocusDirective implements AfterViewInit, OnDestroy {
private readonly className: string = 'initial-focused';
private readonly unsubscribe$: Subject<boolean> = new Subject<boolean>();
@Input() public focusDelay: number = MIN_DELAY;