mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
20 lines
415 B
TypeScript
20 lines
415 B
TypeScript
///<reference path="../../headers/common.d.ts" />
|
|
|
|
import config = require('app/core/config');
|
|
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);
|