Skip to content

Recursive Components property binding are not validated #33

@adrienbaron

Description

@adrienbaron

When using a Component recursively in it's own template, property binding check (for type/required properties) are not done.
For example with this recursive MyRecursiveComponent.html template:

<div>
  <my-recursive/>
</div>

And this MyRecursiveComponent.java:

@Component(name = "my-recursive")
public class MyRecursiveComponent extends VueComponent {
    @Prop(required = true)
    @JsProperty
    RecursiveData data;
}

We would expect to get a compilation error (missing the required property data on my-recursive). Currently, no error is thrown.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions