Motivation
To be able to run Aurelia code on NodeJS (with aurelia-pal-nodejs) in addition to running it in browser, using browser globals (such as window and browser DOM Element) directly should be avoided - instead they should used via Aurelia Platform Abstraction Layer aurelia-pal instead.
It would be great if this project could help Aurelia ecosystem to get ready for running code on NodeJS in addtion to browser.
Example
Instead of Element plugins should use DOM.Element and instead of window.Intl they should use PLATFORM.global.Intl (as You can see in this fix for aurelia-i18n plugin related to this bug report)
Motivation
To be able to run Aurelia code on NodeJS (with aurelia-pal-nodejs) in addition to running it in browser, using browser globals (such as
windowand browser DOMElement) directly should be avoided - instead they should used via Aurelia Platform Abstraction Layer aurelia-pal instead.It would be great if this project could help Aurelia ecosystem to get ready for running code on NodeJS in addtion to browser.
Example
Instead of
Elementplugins should useDOM.Elementand instead ofwindow.Intlthey should usePLATFORM.global.Intl(as You can see in this fix for aurelia-i18n plugin related to this bug report)