Skip to content

Instantly share code, notes, and snippets.

View AntonGorelov's full-sized avatar
:octocat:

Anton G AntonGorelov

:octocat:
  • WIS Software
  • Rostov-on-Don, Russia
View GitHub Profile
import { Directive, ElementRef, Input, NgZone } from '@angular/core';
import { HotToastService } from '@ngneat/hot-toast';
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
import { fromEvent, switchMap } from 'rxjs';
@UntilDestroy()
@Directive({
selector: '[copy]'
})
export class CopyDirective {