API Reference
Cinder.bind
Register route, action, field, filter, or output handlers inside the runtime.
Need the shortest path?
Use Quick Start when you want the smallest working route → scan → graph → run flow first.
Something feels off?
Inspect scan output, graph state, active route/context, and dispatch in a practical order.
Need the full surface?
Browse all runtime methods, hooks, extension points, and lifecycle APIs.
Use bind() when you want resolved runtime actions to call explicit application logic instead of standard DOM execution.
Example
ts
3 lines
Cinder.bind('action', 'search', ({ intent, snapshot }) => {
console.log(intent.target, snapshot.runtime.activeContextId);
});Supported binding types
routeactionfieldfilteroutput
When to use it
Bindings are useful when:
- the app already has imperative handlers you want to call directly
- route activation is app-specific
- you want explicit app-side logic for an otherwise matched target
For standard browser flows, tag-only DOM execution should still be the first thing to try.
Related pages
Continue reading