valor-software/ng2-dragula

View on GitHub
apps/demo/src/app/examples/04-revert.component.ts

Summary

Maintainability
A
1 hr
Test Coverage
import { Component } from "@angular/core";
import { DragulaService } from "ng2-dragula";

const code = `
<div dragula="REVERT"></div>

export class RevertComponent {
  public constructor(private dragulaService:DragulaService) {
    dragulaService.createGroup("REVERT", {
      revertOnSpill: true
    });
  }
}
`;

@Component({
  selector: 'ex-04-revert',
  templateUrl: './04-revert.component.html'
})
export class RevertComponent {
  code = code;
  public constructor(private dragulaService:DragulaService) {
    dragulaService.createGroup("REVERT", {
      revertOnSpill: true
    });
  }
}