24 lines
643 B
TypeScript
24 lines
643 B
TypeScript
import { Component, Input, OnInit } from '@angular/core';
|
|
import { PollService } from '../../../../../core/services/poll.service';
|
|
import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';
|
|
|
|
@Component({
|
|
selector: 'app-step-three',
|
|
templateUrl: './step-three.component.html',
|
|
styleUrls: ['./step-three.component.scss'],
|
|
})
|
|
export class StepThreeComponent implements OnInit {
|
|
@Input()
|
|
step_max: any;
|
|
@Input()
|
|
form: any;
|
|
|
|
constructor(public pollService: PollService) {}
|
|
|
|
ngOnInit(): void {}
|
|
|
|
drop(event: CdkDragDrop<string[]>) {
|
|
// moveItemInArray(this.pollService.choices, event.previousIndex, event.currentIndex);
|
|
}
|
|
}
|