You can do this as shown below:
Note: I extracted this from my working code base. Therefore, please configure as you wish. If you need more help, let me know.
presentLoader(): Loading {
this.translate.get('Please_wait').subscribe(res => {
this.content = res;
});
let loader = this.loadingCtrl.create({
content: this.content
});
loader.present();
return loader;
}
source
share