list_ctrl.ts 415 B

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