我有JwSocialButtonsModule
我的社会份额。
JwSocialButtonsModule
在我的应用模块中
我的代码:
<div class="jumbotron">
<div class="row">
<div class="col">
<fb-like url={{url}}></fb-like>
</div>
<div class="col">
<google-plus url={{url}}></google-plus>
</div>
<div class="col">
<tweet url={{url}} text={{text}}></tweet>
</div>
<div class="col">
<linkedin-share url={{url}}></linkedin-share>
</div>
<div class="col">
<pin-it url={{url}} media={{imageUrl}} description={{text}}></pin-it>
</div>
</div>
我需要共享自定义文本而不是 url。如果我将 url 更改为 text 它的抛出错误,例如
模板解析错误:
Can't bind to 'text' since it isn't a known property of 'fb-like'.
1. If 'fb-like' is an Angular component and it has 'text' input, then verify that it is part of this module.
2. If 'fb-like' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
如何通过社交分享分享文字内容