UNPKG

ah-dashboard-plugin

Version:

Plugin for an ActionHero Dashboard with many functionalities

19 lines (17 loc) 555 B
define(['app'], function (app) { app.controller('ahDashboardPlugins', function ($scope, ngDialog, ahDashboardCommunicationService) { ahDashboardCommunicationService.action('getPlugins', function (err, data) { $scope.plugins = data.plugins; $scope.pluginsLoadingDone = true; $scope.$apply(); $scope.open = function (html) { ngDialog.open({ template: html, plain: true, className: 'ngdialog-theme-default', scope: $scope }); }; }); }); });