FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ionic/angular/src/app-initialize.ts at functional-inputs · ModusCreateOrg/ionic · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ModusCreateOrg
/
ionic
Public
forked from
ionic-team/ionic-framework
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ionic
/
angular
/
src
/
app-initialize.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (34 loc) · 1.18 KB
Breadcrumbs
ionic
/
angular
/
src
/
app-initialize.ts
Copy path
File metadata and controls
39 lines (34 loc) · 1.18 KB
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
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import
{
NgZone
}
from
'@angular/core'
;
import
{
applyPolyfills
,
defineCustomElements
}
from
'@ionic/core/loader'
;
import
{
Config
}
from
'./providers/config'
;
import
{
IonicWindow
}
from
'./types/interfaces'
;
import
{
raf
}
from
'./util/util'
;
export
const
appInitialize
=
(
config
:
Config
,
doc
:
Document
,
zone
:
NgZone
)
=>
{
return
(
)
:
any
=>
{
const
win
:
IonicWindow
|
undefined
=
doc
.
defaultView
as
any
;
if
(
win
)
{
const
Ionic
=
win
.
Ionic
=
win
.
Ionic
||
{
}
;
Ionic
.
config
=
{
...
config
,
_zoneGate
:
(
h
:
any
)
=>
zone
.
run
(
h
)
}
;
const
aelFn
=
'__zone_symbol__addEventListener'
in
(
doc
.
body
as
any
)
?
'__zone_symbol__addEventListener'
:
'addEventListener'
;
return
applyPolyfills
(
)
.
then
(
(
)
=>
{
return
defineCustomElements
(
win
,
{
exclude
:
[
'ion-tabs'
,
'ion-tab'
]
,
syncQueue
:
true
,
raf
,
jmp
:
(
h
:
any
)
=>
zone
.
runOutsideAngular
(
h
)
,
ael
(
elm
,
eventName
,
cb
,
opts
)
{
(
elm
as
any
)
[
aelFn
]
(
eventName
,
cb
,
opts
)
;
}
,
rel
(
elm
,
eventName
,
cb
,
opts
)
{
elm
.
removeEventListener
(
eventName
,
cb
,
opts
)
;
}
}
)
;
}
)
;
}
}
;
}
;
Back
|
FazBrowse Home
|
New Git URL