FunctionDecorator that binds a reactive signal to a key path in the model's data,
read via this.get(...keys) and written via this.set(value, ...keys).
class TodoModel extends TurboModel {
@modelSignal() title = "";
@modelSignal("meta", "author") author = "";
}
Is equivalent to:
class TodoModel extends TurboModel {
@signal get title() { return this.get("title"); }
set title(value) { this.set(value, "title"); }
@signal get author() { return this.get("meta", "author"); }
set author(value) { this.set(value, "meta", "author"); }
}
The key path into the model's data. Defaults to the decorated member name if omitted.