Skip to content

conditional binding #2

@johanfforsberg

Description

@johanfforsberg

I'm using the template binding and selecting a template depending on a model attribute, model.class. However, I'd also like to be able to handle the case where model is undefined. Knockout has an if binding which omits the contained part from rendering if the conitional is false. Is there a way to do something similar with Knockoff?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions