Skip to content

Commit 5892d76

Browse files
committed
refactor: provide fake document object when bootstrapping the app
1 parent 673b93c commit 5892d76

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: nativescript-angular/platform.ts

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
} from "@angular/platform-browser-dynamic";
1919

2020
import {
21+
DOCUMENT,
2122
ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS as INTERNAL_BROWSER_PLATFORM_PROVIDERS
2223
} from "@angular/platform-browser";
2324

@@ -59,6 +60,10 @@ export const NS_COMPILER_PROVIDERS: StaticProvider[] = [
5960
},
6061
multi: true
6162
},
63+
{
64+
provide: DOCUMENT,
65+
useValue: { body: { isOverride: true } },
66+
},
6267
];
6368

6469
// Dynamic platform

0 commit comments

Comments
 (0)