I want to use embeded tweets inside an ng-view partial but for some reason it not working. if I put it outside of the partial (directly in the index.html) it works.
Does anyone has an idea how this can be fixed?
I want to use embeded tweets inside an ng-view partial but for some reason
Share
The problem is order in which tweeter script and your main.html is loaded: when mail.html is loaded before widget.js, tweeter’s script is not able to find your
backquoteelement and render it nice way.You can put
<script ...>into main.html, but in this case keep in mind, that Angular’s jqLite does not support<script>tags in partials, loaded via XHR. So you need to include real jQuery before angular.Here is a Plunker: http://plnkr.co/edit/rQUThnZNAyJQGFIwflGk?p=preview