mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
19 lines
371 B
TypeScript
19 lines
371 B
TypeScript
///<reference path="../../headers/common.d.ts" />
|
|
|
|
import angular from 'angular';
|
|
|
|
export class AppListCtrl {
|
|
apps: any[];
|
|
|
|
/** @ngInject */
|
|
constructor(private backendSrv: any) {}
|
|
|
|
init() {
|
|
this.backendSrv.get('api/org/apps').then(apps => {
|
|
this.apps = apps;
|
|
});
|
|
}
|
|
}
|
|
|
|
angular.module('grafana.controllers').controller('AppListCtrl', AppListCtrl);
|