0.1.3 • Published 6 years ago

stukjs v0.1.3

Weekly downloads
6
License
ISC
Repository
gitlab
Last release
6 years ago

stukJs- Simplified two-way data bind for JS

NPM

Installation

npm:

$ npm i stukjs --save

browser:

<script src="https://unpkg.com/stukjs@latest/Stuk.js"></script>

Usage

Pass an object containing all the variables that will be used by the page to stuk.bindpage(), and then add the stuk attribute to elements that should bind to a variable. The value passed to the stuk attribute should be an existing key in the object passed to stuk.bindpage(). Changes to the bound variable's value will be reflected in the page, and changes made to the bound element's value will also propagate back to the script.

Example

<input stuk="name">
<script>
    Stuk.bindPage({name:"Benedetti"});
</script>

Notes

this code was based on: wintellect.

0.1.2

6 years ago

0.1.3

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

1.0.1

7 years ago