0.2.1 • Published 7 years ago
aurelia-global-binding v0.2.1
Aurelia Global Binding
- Demo / Playable code sandbox: https://codesandbox.io/s/mmy46056lx
Enable simple binding (one way, two way, one time) to global objects, such as
window,documentvia custom element template. Example:<template> <document-binding title="Hello worldasdasd" click.trigger="hello()"></document-binding> <window-binding online.trigger="hello(message = 'online or offline')"></window-binding> </template>
Dev
Install dependencies:
npm installRun build task:
npm run build
Test
Run test task (Headless Chrome):
npm run testRun test task with debugger Chome
npm run test:debugger