Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.
This repository was archived by the owner on May 16, 2024. It is now read-only.

Clear model data #21

@pedalpete

Description

@pedalpete

Great little directive, but I'm having trouble clearing the date field (I'll admit, I've been away from Angular for a bit, but thought this would be easy).

<input pikaday="filterCtrl.filter.fromDate" on-select="filterCtrl.selectDate(pikaday,'fromDate')" />

I thought pikaday would clear if I set filterCtrl.filter.fromDate = null but the text is still in the input field.

I don't see anywhere in your code to clear. Is this possible? Or do I need to just go get the element and clear it?

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