-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathmain.ts
More file actions
22 lines (21 loc) · 640 Bytes
/
main.ts
File metadata and controls
22 lines (21 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import {
bootstrapApplication,
provideNativeScriptHttpClient,
provideNativeScriptRouter,
runNativeScriptAngularApp,
} from '@nativescript/angular';
import { provideZonelessChangeDetection } from '@angular/core';
import { withInterceptorsFromDi } from '@angular/common/http';
import { routes } from './routes';
import { App } from './app';
runNativeScriptAngularApp({
appModuleBootstrap: () => {
return bootstrapApplication(App, {
providers: [
provideNativeScriptHttpClient(withInterceptorsFromDi()),
provideNativeScriptRouter(routes),
provideZonelessChangeDetection(),
],
});
},
});