@Lyhout wrote:
I want to get url to iab.create but it’s not defined.but it 's not work
public showMap() { // this.iab.create('https://www.google.com/maps/place/Pencil+Market/@11.5586454,104.9339044,15z/data=!4m2!3m1!1s0x0:0x34af5d1d1b723a49?sa=X&ved=2ahUKEwigjejBw7vjAhUYdCsKHbyWC4cQ_BIwCnoECA8QCA'); let url = this.getContact(); let target = '_blank'; this.iab.create('https://www.google.com/maps/'+ url,target,this.options); } public async getContact(){ const loading = await this.loadingController.create({ duration: 1000, message: "Loading" }) await loading.present(); await this.api.getContact() .subscribe(res => { this.contact = res; loading.dismiss(); },err =>{ console.log(err); }); }
Posts: 1
Participants: 1