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