Use native audio

my question is general:

    ionViewWillEnter(){
		this.no= this.navParams.get('no');
		if(this.no==..){
			..................
		}
		else if(this.no==..){
			..................
		}
		else if(this.no==..){
			..................
		}
		else{}	
        }


  	}

I want to audio file is changed depending on the situation(ionViewWillEnter).

Please elaborate your question.

Then someone can help you

ionViewDidLoad() executes before ionViewWillEnter(). In general, it’s dangerous to rely on order of execution of lifecycle events, and doubly so when you’ve demonstrably made the wrong bet.