FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nativescript-angular/nativescript-angular/platform.ts at 10.1.5 · NativeScript/nativescript-angular · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
NativeScript
/
nativescript-angular
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
240
Star
1.2k
Code
Issues
294
Pull requests
2
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
nativescript-angular
/
nativescript-angular
/
platform.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (12 loc) · 717 Bytes
Breadcrumbs
nativescript-angular
/
nativescript-angular
/
platform.ts
Copy path
File metadata and controls
15 lines (12 loc) · 717 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{
PlatformRef
,
platformCore
,
createPlatformFactory
}
from
'@angular/core'
;
import
{
NativeScriptPlatformRef
,
AppOptions
,
PlatformFactory
,
COMMON_PROVIDERS
}
from
'./platform-common'
;
// "Static" platform
const
_platformNativeScript
:
PlatformFactory
=
createPlatformFactory
(
platformCore
,
'nativeScript'
,
[
...
COMMON_PROVIDERS
]
)
;
export
function
platformNativeScriptDynamic
(
options
?:
AppOptions
,
extraProviders
?:
any
[
]
)
:
PlatformRef
{
// Return raw platform to advanced users only if explicitly requested
if
(
options
&&
options
.
bootInExistingPage
===
true
)
{
return
_platformNativeScript
(
extraProviders
)
;
}
else
{
return
new
NativeScriptPlatformRef
(
_platformNativeScript
(
extraProviders
)
,
options
)
;
}
}
Back
|
FazBrowse Home
|
New Git URL