Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49172

Open external link from json data file

$
0
0

@batman wrote:

I can open a link normally like so

<a class="item" href="#" onclick="window.open('http://www.google.com/', '_system', 'location=yes'); return false;">
 Open link
</a>

but my url is coming from a json file and loading it doesn't work

<a class="item" href="#" onclick="window.open({{event.url}}, '_system', 'location=yes'); return false;">
 Open link
</a>

how can I load the url properly?

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 49172

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>