Ionic 3 - Sending data to service from component

I am trying to send an object from my component which is from the input of the user to the service I have.

This is my code…


  <ion-label color="primary">Subject</ion-label>
  <ion-select [(ngModel)]="attendanceSet.subject">
    <ion-option *ngFor="let subject of subjects" [value]="subject.title">{{subject.title}}</ion-option>

  <ion-label color="primary">Date</ion-label>
  <ion-datetime [(ngModel)]="" displayFormat="DDD MMM DD" pickerFormat="YYYY MM DD"></ion-datetime>

<button ion-button block padding (click)="proceed(attendanceSet)">Proceed</button>


public attendanceSet = {}

  this.navCtrl.push(CheckAttendancePage, {
    setData: attendanceSet


private attendanceListRef: AngularFireList<Attendance>

public setAttendance = {}

constructor(private db: AngularFireDatabase, private events: Events, public navParams: NavParams, private method: CheckAttendancePage){

    this.attendanceListRef = this.db.list<Attendance>('attendance/')


addAttendance(attendance: Attendance) {
    return this.attendanceListRef.push(attendance)

What I’m trying to do is getting data from the sample.html which I will later use to define the path of the “attendanceListRef” like this “attendance/subject/date”

Is there any proper or alternative way to do this? Thanks!