use async apply (#5258)

This commit is contained in:
Mitsuhiro Tanda
2016-06-07 00:18:10 +09:00
committed by Torkel Ödegaard
parent 2f5ae85d33
commit f877afb74d

View File

@@ -41,10 +41,11 @@ export class GrafanaApp {
var app = angular.module('grafana', []);
app.constant('grafanaVersion', "@grafanaVersion@");
app.config(($locationProvider, $controllerProvider, $compileProvider, $filterProvider, $provide) => {
app.config(($locationProvider, $controllerProvider, $compileProvider, $filterProvider, $httpProvider, $provide) => {
if (config.buildInfo.env !== 'development') {
$compileProvider.debugInfoEnabled(false);
}
$httpProvider.useApplyAsync(true);
this.registerFunctions.controller = $controllerProvider.register;
this.registerFunctions.directive = $compileProvider.directive;