Data not fetching on first click showin undefine


I’m try to fectch value from database using provider but on first click showing blank but on second click work properly and fetch data from database.but i want to get the data on first click.
Below my myproviders.ts

import { Injectable } from '@angular/core';
import { Http, Headers, RequestOptions, Response } from "@angular/http";
import 'rxjs/add/operator/map';
export class FieldstaffdataProvider {
staffname: any;
  constructor(public http: Http, public toastService: ToastProvider) {
      .subscribe(data => {
        let  dataTemp=data.json()
        let response = dataTemp.code;
      }, error => {
        // Error getting the data
    return Promise.resolve(this.staffname);

Above provider i called into the page-add-expenses-fooding.ts

import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { FieldstaffdataProvider } from '../../providers/fieldstaffdata/fieldstaffdata';

  selector: 'page-add-expenses-fooding',
  templateUrl: 'add-expenses-fooding.html',
export class AddExpensesFoodingPage {
 names: any;
  constructor(public navCtrl: NavController, public navParams: NavParams,public data:FieldstaffdataProvider) {


  ionViewDidLoad() { => {
      this.names = result;


below my html

  <ion-label color="custom" floating>Select field Staff</ion-label>
  <ion-select [(ngModel)]="buyer" #FieldStaff (ionChange)="getstaffname(FieldStaff.value)">
       <ion-option *ngFor="let name of names" [value] = "name.users_id">{{}}</ion-option>

how can i fix .Please help me anyone