Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement :if directive #19

Open
williamthome opened this issue Jun 19, 2024 · 0 comments · May be fixed by #189
Open

Implement :if directive #19

williamthome opened this issue Jun 19, 2024 · 0 comments · May be fixed by #189
Assignees

Comments

@williamthome
Copy link
Member

The :if directive is important for adding conditionals to the template.
For example:

<main>
    Foo
    <dialog :if={_@show_modal}>
        Bar
    </dialog>
</main>

Then, if the show_modal assign is false, only <main>Foo</main> is rendered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant