From f877afb74d582ee9073d9b0f9315ec93c9343043 Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Tue, 7 Jun 2016 00:18:10 +0900 Subject: [PATCH] use async apply (#5258) --- public/app/app.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/app.ts b/public/app/app.ts index 6de7181f5a1..375e75ffa29 100644 --- a/public/app/app.ts +++ b/public/app/app.ts @@ -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;