|
|
|
@@ -1,38 +0,0 @@ |
|
|
|
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; |
|
|
|
import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'app-modal', |
|
|
|
templateUrl: './modal.component.html', |
|
|
|
styleUrl: './modal.component.scss', |
|
|
|
}) |
|
|
|
export class ModalComponent implements OnInit { |
|
|
|
@Input() dynamicComponent: any; |
|
|
|
@Input() inputData: any; |
|
|
|
@Output() public submit: EventEmitter<any> = new EventEmitter<any>(); |
|
|
|
|
|
|
|
constructor(public activeModal: NgbActiveModal) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
// this.submit.emit("flo is toll"); |
|
|
|
// this.dynamicComponent.submit.subscribe(() => { |
|
|
|
// console.log('Ereignis von dynamischer Komponente empfangen'); |
|
|
|
// // Hier kannst du die Logik für das Abfangen des Ereignisses implementieren |
|
|
|
// }); |
|
|
|
} |
|
|
|
|
|
|
|
onSubmit() { |
|
|
|
console.log("FLOR"); |
|
|
|
} |
|
|
|
|
|
|
|
onChildSubmit($event: any) { |
|
|
|
this.submit.emit($event); |
|
|
|
} |
|
|
|
|
|
|
|
public static createInputData(inputData: any) { |
|
|
|
return { 'inputData': inputData } |
|
|
|
} |
|
|
|
|
|
|
|
} |