Bundle/WidgetBundle/Renderer/WidgetRenderer.php
public function prepareAsynchronousRender($widgetId)
    {
        $ngControllerName = 'widget'.$widgetId.'AsynchronousLoadCtrl';
        $ngDirectives = sprintf('ng-controller="WidgetAsynchronousLoadController as %s" class="vic-widget" ng-init="%s.init(%d)" ng-bind-html="html"', $ngControllerName, $ngControllerName, $widgetId);
        $html = sprintf('<div class="vic-widget-container vic-widget-asynchronous" data-id="%d" %s></div>', $widgetId, $ngDirectives);

        return $html;
    }
public function prepareAsynchronousRender($widgetId)
    {
        $ngControllerName = 'widget'.$widgetId.'AsynchronousLoadCtrl';
        $ngDirectives = sprintf('ng-controller="WidgetAsynchronousLoadController as %s" class="vic-widget" ng-init="%s.init(%d)" ng-bind-html="html"', $ngControllerName, $ngControllerName, $widgetId);
        $html = sprintf('<div class="vic-widget-container vic-widget-asynchronous" data-id="%d" %s></div>', $widgetId, $ngDirectives);

        return $html;
    }
public function prepareAsynchronousRender ( $ widgetId ) { $ ngControllerName = 'widget' . $ widgetId . 'AsynchronousLoadCtrl' ; $ ngDirectives = sprintf ( 'ng-controller="WidgetAsynchronousLoadController as %s" class="vic-widget" ng-init="%s.init(%d)" ng-bind-html="html"' , $ ngControllerName , $ ngControllerName , $ widgetId ) ; $ html = sprintf ( '<div class="vic-widget-container vic-widget-asynchronous" data-id="%d" %s></div>' , $ widgetId , $ ngDirectives ) ; return $ html ; }
prepare a widget to be rendered asynchronously.

@param int $widgetId

@return string
prepare a widget to be rendered asynchronously .