Skip to content

Instantly share code, notes, and snippets.

View MikeRyanDev's full-sized avatar

Mike Ryan MikeRyanDev

View GitHub Profile
import { Directive, Output, EventEmitter, ChangeDetectionStrategy, ElementRef } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';
import 'rxjs/add/operator/takeUntil';
@Directive({
selector: '[draggable]',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class DraggableDirective {