applying scope in angular vis type (#20461)

This commit is contained in:
Peter Pisljar 2018-07-04 16:23:45 +02:00 committed by GitHub
parent f9cc61580a
commit a1e44ef496
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,7 @@ export function AngularVisTypeProvider($compile, $rootScope) {
this.$scope.uiState = this.vis.getUiState();
updateScope();
this.el.html($compile(this.vis.type.visConfig.template)(this.$scope));
this.$scope.$apply();
} else {
updateScope();
}