Window.open() to open a url passed through a json file?

Viewed 3567

I am building an ionic app for android and ios, using html code. I am trying to call a link from a json file stored on a server with a field name of link, but the window.open() will not recognize this, can someone please help?

<a onClick="window.open({{item.link}}, '_blank', 'location=yes')">

Tried to use href's but they only open the link in a browser which doesn't allow the user to back out of when tested, they have to exit the app completely to get back.

Any help would be appreciated. It seems to only be on ios which they happens.

GOT IT SORTED

<a href="{{item.link}}" onclick="window.open(this.href,'_blank',location=yes); return false;">

4 Answers
Related