I am trying to implement a feature in Ionic where I need to call a PHP page. In the home.html
file, there is a URL being called like this -
<a target="_blank" href="https://www.example.com?">pdf</a>
The challenge now is to add a variable from the home.ts
file into the URL link, so it looks like this:
<a target="_blank" href="https://www.w3schools.com?ADAM">pdf</a>
In the home.ts
file, there is a variable defined as name = "ADAM";
. How can I append this variable to the URL within the <a href>
tag on the home.html
side?