marko-js / tags-api-preview

Preview the Marko 6 "Tags API" in Marko 5!
MIT License
22 stars 7 forks source link

<return> tag with marko-tag.json #24

Closed Hen2609 closed 2 years ago

Hen2609 commented 2 years ago

Marko Version: 5.2.0 Tags api version: 0.5

Details

Tried to add <return> tag to the component but I got the following error: image

this the tag json file: image

Hen2609 commented 2 years ago

Forgot to mention, adding the return tag compiled just fine. only when using it, I got the error

Hen2609 commented 2 years ago

Found another interesting example: I have the following attribute in the json file: "@previousIndex": { "type": "number", "default-value": 0 }, on my component I wrote: <slides-carouselpreviousIndex:=previousIndex/> and I got the following error: <slides-carousel> does not support the "previousIndexChange" attribute.

I noticed normal assignment work fine, after adding this, binding was possible again: "@previousIndexChange": { "type": "function" }