Closed matthewadams closed 5 years ago
@matthewadams, sure, I will add it! Thanks!
@JiaLiPassion I'm dead in the water right now. If you could throw something together quickly so that I could get going, I'd really appreciate it! :)
Currently, I'm getting undefined
for Zone.current
.
@matthewadams, here is a very basic sample, https://github.com/JiaLiPassion/zone-node
Ah, ok. By doing require('zone.js/dist/zone-node')
, you get a global variable Zone
. That's the difference.
Perhaps it's worth updating the documentation to say that? Thanks!
I'll try it out, and reopen this issue if I'm having trouble.
@matthewadams, sure, I will make documentation more clearly, thanks!
This could be an RTFM, but it'd be jim-dandy if you could provide a working example of how to properly use
zone.js
in a headless, plain JavaScript Node.js app that I'd run in a terminal withnode index.js
.https://github.com/angular/zone.js/blob/HEAD/SAMPLE.md contains what appears to be only browser-based examples.