File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ import * as nativescriptIntl from "nativescript-intl";
5454global . Intl = nativescriptIntl ;
5555
5656export interface AppOptions {
57+ bootInExistingPage : boolean ,
5758 cssFile ?: string ;
5859 startPageActionBarHidden ?: boolean ;
5960}
@@ -255,7 +256,12 @@ var _platformNativeScriptDynamic: PlatformFactory = createPlatformFactory(
255256 platformCoreDynamic , 'nativeScriptDynamic' , NS_COMPILER_PROVIDERS ) ;
256257
257258export function platformNativeScriptDynamic ( options ?: AppOptions , extraProviders ?: any [ ] ) : PlatformRef {
258- return new NativeScriptPlatformRef ( _platformNativeScriptDynamic ( extraProviders ) , options ) ;
259+ //Return raw platform to advanced users only if explicitly requested
260+ if ( options && options . bootInExistingPage === true ) {
261+ return _platformNativeScriptDynamic ( extraProviders ) ;
262+ } else {
263+ return new NativeScriptPlatformRef ( _platformNativeScriptDynamic ( extraProviders ) , options ) ;
264+ }
259265}
260266
261267export const onBeforeLivesync = new EventEmitter < NgModuleRef < any > > ( ) ;
You can’t perform that action at this time.
0 commit comments