I have a database linked to the project with the variable {{PID}}. What I want is to create a function to open external files (URL) that contain this expression in the middle: To open a single file I have:
<ion-button (click)="abrirpdf('https://abcd.com/pids/RS-00020.pdf')">Open {{PID}}</ion-button>
I would like to know how to integrate the variable in my URL if possible, because it doesn’t work this way:
<ion-button (click)="abrirpdf('https://abcd.com/pids/RS-{{PID}}.pdf')">Open {{PID}}</i
2 posts - 2 participants