0
I am using the plugin/framework Addthis to share on social networks, and I want to change the image dynamically based on different content, I came to make the implementation of updateTag
, but when I click to share it doesn’t take the tag that changed, it just takes the one that was already when the site is loaded.
Below is how the updateTag
:
ngOnInit(){
this.meta.updateTag({ property: 'og:image', content: 'teste.jpg' });
}