ngx-facebook
ngx-facebook copied to clipboard
Facebook comment not change when I change URL with angular 5 [routerLink]
Hello, I try using your facebook comment. I put it in my ProductDetail module, when first time I load page, everything show perfectly, but when I change URL to new product information (of course the page not reload everything), comment facebook still appear with content of previous product. So, please help me handle this. Thank you
common issue when using Facebook plugins in SPA, similar to #74. To fix this, you need to explicitly parse your plugin every time there are changes.
setTimeout(() => { window.FB.XFBML.parse(); });