angular-ru-sdk icon indicating copy to clipboard operation
angular-ru-sdk copied to clipboard

🚀 - add NgDestroy

Open splincode opened this issue 2 years ago • 0 comments

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;

splincode avatar Dec 09 '21 13:12 splincode