Angular: Fix for paths with interpolation

This commit is contained in:
Hugo Häggmark
2021-10-22 14:44:54 +02:00
parent 681741b224
commit 5c7224eb56
+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);