I am trying to develop an ionic app that i will be deploying as a pwa in which i want to embed Youtube Videos and display them in a grid. Video links, their titles, and brief descriptions are provided by my Cloud Firestore objects.
Now the problem is that when I am trying to use iframe in ionic app with single url like :
<iframe width="560" height="315" src="https://www.youtube.com/embed/6kqe2ICmTxc" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
then it is working but when I am binding it to my database Video URL, then it is not working. The console is showing that URL is not a safe url.
Now, I know that it can be fixed by using the DomSanitizer but i don't know how to use it for the array of objects that contains the required links.