Skip to content
Simple two-way data binding for HTML/JavaScript
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
src
LICENSE
README.md

README.md

STCK

Simple two-way data binding for HTML/JavaScript

https://jhammond045.github.io/STCK/

I wondered how hard it would be to make a simple set of data binding tools that functioned similar to Angular's basic directives, so I decided to give it a shot.

Attributes supported:

  • stck-bind
  • stck-if
  • stck-repeat with internal stck-bind

Event bindings:

  • stck-click
  • stck-focus
  • stck-change

Bells and whistles:

  • Two-way binding for input, select, textarea, etc.
  • One-way binding for div, span, p, etc.
  • Tries to support older browsers with the addition of object.watch.js (https://gist.github.com/eligrey/384583).
  • Deep properties are supported (e.g. stck-bind="my.deep.property").
  • Fairly efficient expression monitoring for stck-if.

Very alpha. Almost totally untested!

You can’t perform that action at this time.