Redirect to an external URL and open in a new tab in typescript, apply below example code:
gotoURL(){ window.open("https://www.google.com", "_blank"); }
For Example follow this.
Button Link:
<button ion-button (click)="gotoFacebook(facebook_link)" class="add_more fb-icon-btn"> <ion-icon name="logo-facebook"></ion-icon> </button>
page.ts:
gotoFacebook(url){ window.open(url, "_blank"); }
Hope it will be helpful for you.
Question and answer is powered by AnsPress.io