blob: b3eda1299703552d2b44c29472342cb3b5f763f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<div>
<div piwik-widget
containerid="{{ containerId|e('html_attr') }}"
widgetized="{% if isWidgetized %}true{% else %}false{% endif %}"></div>
<script type="text/javascript">
$(function () {
var piwikWidget = $('[piwik-widget][containerid={{ containerId|e('js') }}]');
angular.element(document).injector().invoke(function($compile) {
var scope = angular.element(piwikWidget).scope();
$compile(piwikWidget)(scope.$new());
});
});
</script>
</div>
|