list_ctrl.ts 371 B

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