plugin_list_ctrl.ts 394 B

1234567891011121314151617
  1. ///<reference path="../../headers/common.d.ts" />
  2. import angular from 'angular';
  3. export class PluginListCtrl {
  4. plugins: any[];
  5. /** @ngInject */
  6. constructor(private backendSrv: any) {
  7. this.backendSrv.get('api/plugins', {embedded: 0}).then(plugins => {
  8. this.plugins = plugins;
  9. });
  10. }
  11. }
  12. angular.module('grafana.controllers').controller('PluginListCtrl', PluginListCtrl);