The see a working example of components built with Nimbly, open sample/index.html
in a web browser.
The sample project is very simple, but it demonstrates the most important functionality, including:
- Initializing a component with
initList
. - Linking state changes (i.e.,
this.data
mutations) to UI updates viauiBindings
. - Linking state changes to class methods via
dataBindings
. - Initializing and registering child components.
- Registering child component in a repeatable section (e.g., a list).
- State mutation on a child component triggers
dataBinding
anduiBinding
on parent component.
For a live working example of a stand-alone component built with Nimbly (i.e., no child components), please visit the Hello World component jsFiddle.