【发布时间】:2021-05-04 05:26:29
【问题描述】:
我收到了来自 firebase 的 rest api 的动态链接。
social.ts
this.shareUrl = res.shortLink; //dynamic link is stored in this variable from the response.
现在我正在尝试在 ngx-sharebuttons 使用的社交分享按钮上提供 this.shareUrl(short link)。
social.html
<share-buttons class="mb-2 mt-2" [theme]="'circles-dark'"
[include]="'facebook','twitter','whatsapp']" [show]="9" [url]="'this.shareUrl'">
</share-buttons>
我也试过[url] = "{{this.shareUrl}}"
我想在whatsapp、FB ad twitter 上分享这个动态链接。如果有人可以帮助我解决此问题或分享社交分享此链接的替代方法,我将不胜感激。
【问题讨论】:
标签: angular firebase-dynamic-links socialshare