Open spimou opened 5 years ago
You're trying to just display the Share button?
just change the class name form "fb-like" to "fb-share-button"
<div class="fb-like" [attr.data-href]="url" data-layout="button" data-size="large" data-share="true"></div>
to
<div class="fb-share-button" [attr.data-href]="url" data-layout="button" data-size="large" data-share="true"></div>
I am using your component with angular 6 . I have no problem, but I went to
fb-like.component.js
and changed the template totemplate: "<div class=\"fb-like\" [attr.data-href]=\"url\" data-layout=\"button\" data-action=\"like\" data-show-faces=\"false\" data-share=\"true\"></div>"
, so I just get a simple Like and Share Button.How can I remove the
Like
button? I tried with CSS, doingdisplay:none
, but it does not work.Thanks