为什么在AngularJs 1.5中的多个页面上显示相同的注释

时间:2018-04-18 04:27:34

标签: angularjs disqus

我已尝试在about, services等不同网页上使用适当的URLidentifier尝试以下代码。但我在两个页面上都得到了相同的评论。我使用的是Angular 1.5。我已将此添加到相应的控制器中。

        var disqus_config = function () {
            // About us
            this.page.url = "http://localhost/#!/about";  
            this.page.identifier = "about"; 
            // For Services Page
            //this.page.url = "http://localhost/#!/services"; 
            //this.page.identifier = "services"; 
        };

        (function() { // DON'T EDIT BELOW THIS LINE
            var d = document, s = d.createElement('script');
            s.src = 'https://smetest.disqus.com/embed.js';
            s.setAttribute('data-timestamp', +new Date());
            (d.head || d.body).appendChild(s);
        })();

任何人都可以帮忙吗?

0 个答案:

没有答案
相关问题