Skip to content

Commit

Permalink
fix: sortablejs directive no longer supports runInsideAngular property
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingCloud9527 authored and CodingCloud9527 committed Oct 24, 2020
1 parent aaa43d9 commit 7f59f49
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions projects/ngx-sortablejs/src/lib/sortablejs.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ export class SortablejsDirective implements OnInit, OnChanges, OnDestroy {

private sortableInstance: any;

@Input() runInsideAngular = false; // to be deprecated

@Output() sortablejsInit = new EventEmitter();

constructor(
Expand All @@ -69,11 +67,7 @@ export class SortablejsDirective implements OnInit, OnChanges, OnDestroy {

ngOnInit() {
if (Sortable && Sortable.create) { // Sortable does not exist in angular universal (SSR)
if (this.runInsideAngular) {
this.create();
} else {
this.zone.runOutsideAngular(() => this.create());
}
this.create();
}
}

Expand Down

0 comments on commit 7f59f49

Please sign in to comment.