Merge pull request #145 from grafana/8.2.3-angular-fix

8.2.3 angular fix
This commit is contained in:
Dimitris Sotirakis
2021-10-22 16:20:25 +03:00
committed by GitHub
+6
View File
@@ -103,6 +103,12 @@ export class AngularApp {
}
bootstrap() {
// Do not initalize angular when the path contains an interpolation directive
const { pathname } = window.location;
if (pathname && (pathname.includes('%7B%7B') || pathname.includes('{{'))) {
return;
}
const injector = angular.bootstrap(document, this.ngModuleDependencies);
monkeyPatchInjectorWithPreAssignedBindings(injector);