I am attempting to build a site using angularJS and symfony, and in my site I want to add a simple Facebook comments box and twitter timeline shown here, respectively:
https://developers.facebook.com/docs/reference/plugins/comments/ https://twitter.com/settings/widgets/370693822461657088/edit?focus_textarea=1¬ice=WIDGET_CREATED
in my JavaScript i have set up angular routing which routes the user to different views, but the problem is the comments box and twitter timeline don't show up in these views.
They DO however, work perfectly fine when they are placed outside of the ng-view tags.
Here is a VERY simplified code snippet of my problem:
<html ng-app="myApp">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{% block title %}Welcome!{% endblock %}</title>
{% block custom_stylesheets %}
{% endblock %}
</head>
<body>
{% block body %}
<div id = "container">
<!-- twitter and facebook work outside of here -->
<div ng-view>
<!-- but not in here -->
</div>
</div>
{% endblock %}
{% block custom_javascripts %}
{% endblock %}
</body>
</html>
Is there something specific i need to do to get twitter/facebook working? it seems as if the javascript is broken, the twitter feed still displays a "tweets by @google" link