Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 - add NgDestroy #1149

Open
splincode opened this issue Dec 9, 2021 · 0 comments
Open

馃殌 - add NgDestroy #1149

splincode opened this issue Dec 9, 2021 · 0 comments
Labels

Comments

@splincode
Copy link
Member

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant