Catalyst is a set of patterns and techniques for developing components within a complex application.
MIT License
This release adds the following:
This release adds the following:
@controller
Elements get a data-catalyst
automatically added during connectedCallback()
data-target
to data-targets
for the @targets
decorator.This is a breaking change, whereas the old style decorators did the following:
Decorator | Equivalent Native Method | Selector | Returns |
---|---|---|---|
@target | querySelector | data-target="*" | Element |
@targets | querySelectorAll | data-target="*" | Array |
The breaking change is that @target
now selects for data-targets
(with an s) like so:
Decorator | Equivalent Native Method | Selector | Returns |
---|---|---|---|
@target | querySelector | data-target="*" | Element |
@targets | querySelectorAll | data-targets="*" | Array |
Published by keithamus over 4 years ago
Element
from the name of the component's tag namePublished by keithamus over 4 years ago
fix: use wrap correctly in @controller
Initial Release! See https://github.github.io/catalyst for more!