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

How to combine my URL with data from my MYSQL

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



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