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
private _initSelectedPeople(): void {
// this._targetStateService.getAllPeople()
// .pipe(takeUntil(this._destroyed$))
// .subscribe((allPeople: TargetModel[]) => {
//
// console.log(allPeople, 'allpeople');
//
// let ids = [];
// this._activatedRoute.queryParamMap
// .pipe(take(1))
private _initSelectedPeople(): void {
// this._targetStateService.getAllPeople()
// .pipe(takeUntil(this._destroyed$))
// .subscribe((allPeople: TargetModel[]) => {
//
// console.log(allPeople, 'allpeople');
//
// let ids = [];
// this._activatedRoute.queryParamMap
// .pipe(take(1))
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 {