Skip to content

Commit b58d849

Browse files
ADjenkovADjenkov
ADjenkov
authored and
ADjenkov
committed
fix(frame-service): move FrameService provider to NativeScriptModule in order to be singleton
1 parent 5e8c092 commit b58d849

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: nativescript-angular/common.ts

-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
defaultDeviceProvider,
1313
defaultFrameProvider,
1414
defaultPageProvider,
15-
FrameService,
1615
} from "./platform-providers";
1716
import { NS_DIRECTIVES } from "./directives";
1817

@@ -26,7 +25,6 @@ import { NS_DIRECTIVES } from "./directives";
2625
defaultDeviceProvider,
2726
defaultFrameProvider,
2827
defaultPageProvider,
29-
FrameService,
3028
],
3129
imports: [
3230
CommonModule,

Diff for: nativescript-angular/nativescript.module.ts

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { NativeScriptCommonModule } from "./common";
2828
import { NativeScriptRendererFactory } from "./renderer";
2929
import { DetachedLoader } from "./common/detached-loader";
3030
import { throwIfAlreadyLoaded } from "./common/utils";
31+
import { FrameService } from "./platform-providers";
3132

3233
export function errorHandlerFactory() {
3334
return new ErrorHandler();
@@ -38,6 +39,7 @@ export function errorHandlerFactory() {
3839
DetachedLoader,
3940
],
4041
providers: [
42+
FrameService,
4143
NativeScriptRendererFactory,
4244
SystemJsNgModuleLoader,
4345
{ provide: APP_ROOT, useValue: true },

0 commit comments

Comments
 (0)