So I have a some HTML where I am pulling a value from a file and using it for a link, like so:
<a href="{{ var('page').value }}">page</a>
Now I need a popup to display that page when clicked, using a basic script and a line like this:
<a href="page.html" onclick="return popitup('page.html')">page</a>
However, I need the popup page value to be pulled from the file as well, so something like this:
<a href="{{ var('page').value }}" onclick="return popitup('{{ var('page').value }}')">page</a>
But the problem I am having is that the variable does not resolve in the popitup() call, I assume because of the apostrophes basically telling it to take that literally. What could fix this and make it resolve?
This is in conjunction with AngularJS
{{}}representing/ngClickand incorporating your popup that way.