JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 228
  • Score
    100M100P100Q75050F
  • License MIT

Still under development. It is not yet mature. Thank you for your understanding!

Package Exports

  • binding

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (binding) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status Coverage Status

Overview :

Binding system which includes any valid binding :

  • Bind value to variable.

  • Bind value to namespace. (DONE)

  • Bind model to view and view to model (MVVM)

  • And many ideas

Install

npm install binding --save;

or using CDN :

<script src="https://cdn.rawgit.com/abdennour/binding/master/cdn/binding-latest.min.js"></script>

Use Cases :

  1. Bind namespace to value :
import binding from 'binding';

const person = binding('name.firstname', 'Ahmed');
// console.log(person.name.firstname) // Ahmed
  1. Bind namespace to value and attach the object :
binding('person.name.firstname', 'Ahmed', window);
// console.log(person.name.firstname) // Ahmed

License:

MIT .