import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {SearchPage} from "../search/search";
import {ContactsPage} from "../contacts/contacts";

/**
 * Generated class for the SendPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-send',
  templateUrl: 'send.html',
})
export class SendPage {

  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad SendPage');
  }

  changePage(params) {
    switch (params) {
      case 'search':{
        this.navCtrl.push(SearchPage);
        break;
      }
      case 'contact':{
        this.navCtrl.push(ContactsPage);
        break;
      }
    }
  }

}
