import { Component } from '@angular/core' ; import { IonicPage , NavController , NavParams , ViewController , LoadingController } from 'ionic-angular' ; @ IonicPage ( ) @ Component ( { selector : 'page-edit-profile' , templateUrl : 'edit-profile.html' , } ) export class EditProfile { public user_data = { profile_img : 'https://avatars1.githubusercontent.com/u/918975?v=3&s=120' , name_surname : 'Can Delibas' , username : 'candelibas' , website : 'https://github.com/candelibas' , description : 'Software developer, open-source lover & Invoker spammer' , email : 'candelibas00@gmail.com' , phone : '' , gender : 'male' } ; constructor ( public navCtrl , public navParams , public viewCtrl , public loadingCtrl ) { } updateProfile ( ) { let loader = this . loadingCtrl . create ( { duration : 200 } ) ; loader . present ( ) . then ( ( ) => this . navCtrl . pop ( ) ) ; } dismiss ( ) { this . viewCtrl . dismiss ( ) ; } }