You are on page 1of 1

angular.

module('e9968f5d-d28d-446f-97b8-9c328756596f', [
'core.services.WidgetAPI'
]).directive('slideShare', widgetComponent);

function widgetComponent(WidgetAPI) {

function widgetContainer(scope, element, params) {

// widget API constructor


var api = new WidgetAPI(params);

// called automatically when widget is destroyed


element.on('$destroy', function() {
api.unregister();
});

return {
scope: {},
replace: true,
template: template,
link: widgetContainer
};
}

You might also like