DEV Community

Rakhi Shah
Rakhi Shah

Posted on

share on social media in angular

I want to give share on social media functionality in my website..i used ngx-share button and used URL="https:hh.com" but i dont want hard coded it i want to pass dynamically this string to URL in Angular
I refer Following Site:
https://dev.to/rodrigokamada/adding-the-social-media-share-buttons-component-to-an-angular-application-320h

Can anyone please help me how to do this
my code:

[include]="['copy', 'facebook', 'email', 'messenger', 'mix', 'line', 'linkedin', 'pinterest', 'print', 'reddit', 'sms', 'telegram', 'tumblr', 'twitter', 'viber', 'vk', 'xing', 'whatsapp']"
[showIcon]="true"
[showText]="false"
[show]="5"
url="https://rodrigo.kamada.com.br/"
description="Angular Share Buttons"
twitterAccount="rodrigokamada"
class="pt-5">

Top comments (0)