Skip to content

Twig Component with Stimulus Attributes #1905

@TomoyaHamasaki

Description

@TomoyaHamasaki

How does one use stimulus when using a component?

<twig:Component {{ stimulus_controller('example') }} />

I can't do this as I can with a typical element. Is the only way to achieve this goal is by doing this?

<twig:Component data-controller="example" />

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions