SyntaxFix
Write A Post
Hire A Developer
Questions
I think you need à target="_blank", so then you can use window.open :
window.open
gotoGoogle() : void { window.open("https://www.google.com", "_blank"); }