This plugin makes it easier to use data-attributes within gondel components by dual-bind them
automatically to a property (interactive example also created):
<div data-t-name="Search"
data-endpoint="https://my-endpoint.com/api/v1"
data-lang="de"
config="{someJSON: 'goes here'}" data-result-count="0">
<!-- some common search code here ... -->
</div>
This plugin makes it easier to use data-attributes within gondel components by dual-bind them automatically to a property (interactive example also created):
Purpose of this pull request?
What changes did you make?
I've added a new
plugins/data
folder with a new plugin for using the new@data()
decorator.Does this pull request introduce a breaking change?
No.
Is there anything you'd like reviewers to focus on?
The
plugins/data/src/DataPlugin.ts
file (hook).