Add new component in agenda

This commit is contained in:
Peter Maquiran
2021-03-25 10:50:58 +01:00
parent 35102b380d
commit 9b71c33c7b
7 changed files with 58 additions and 28 deletions
@@ -1,4 +1,4 @@
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { EventPerson } from 'src/app/models/eventperson.model';
import { EventsService } from 'src/app/services/events.service';
import { ModalController, NavController } from '@ionic/angular';
@@ -11,13 +11,15 @@ import { ModalController, NavController } from '@ionic/angular';
})
export class AttendeesPage implements OnInit {
eventAttendees: EventPerson[];
segment:string = "true";
shouldShowCancel:boolean = true;
searchCountryString = ''; // initialize your searchCountryString string empty
@Output() openAttendeeModal = new EventEmitter<any>();
@Output() openAddEvent = new EventEmitter<any>();
@Input() eventAttendees: EventPerson[];
constructor(private eventService: EventsService, private modalCtrl: ModalController,
@@ -29,11 +31,13 @@ export class AttendeesPage implements OnInit {
}
save(){
this.openAddEvent.emit();
// this.modalCtrl.dismiss(this.eventAttendees);
}
close(){
// this.modalCtrl.dismiss(null);
this.openAddEvent.emit();
}
removeAttendee(attendee: EventPerson)