【发布时间】:2014-04-09 18:20:25
【问题描述】:
我已经在我的页面上安装了下面的 FB 插件,其中我指定了 data-href 如下:
<div class="fb-comments" data-href="http://pingle.com/ngdemo" data-width="550px" data-numposts="5" data-colorscheme="light"></div>
但是,当我尝试为其设置范围值以使 URL 具有特定性时,它没有采用它,并且在检查 firefox 时,值 {{ post.id }} 没有被添加到 fb DIV 中的 URL。
<div class="fb-comments" data-href="http://pingle.com/ngdemo?postId={{ post.id }}" data-width="550px" data-numposts="5" data-colorscheme="light"></div>
PS:当我在 html 上打印时,就在 fb 插件上方,它显示得很好吗?有没有办法将范围值附加到 fb 评论的 data-href 属性??
【问题讨论】:
标签: facebook angularjs angularjs-scope facebook-comments angular-ui-bootstrap