2 posts about
Angular 2

Ionic play embed youtube

When we want to play youtube in an ionic project. Simply using <youtube-iframe-player></youtube-iframe-player> It works great during development, and also on Android. However once it is tested in iOS, it shows a blank page with Unable to post message to https://www.youtube.com. Recipient has origin file:// To Solve this, include the...

Read More

Using Facebook Comment Plugin in Angular/Ionic 2+

In order to use Facebook's comment plugin in a single-page app, we must modify the provided script. Otherwise, you'll find that the comments fail to show up on the second page. This is because the script is loaded only once at startup, and it doesn't know that new elements have appeared. post.component.ts ngAfterViewInit(){ (function(d, s,...

Read More