Skip to content

jhammond045/STCK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Simple two-way data binding for HTML/JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published