Merge pull request #145 from grafana/8.2.3-angular-fix
8.2.3 angular fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user