Skip to content

timepicker doens't push to angular array #39

Description

@okkernoot

I have an application where I added the angular-jquery-timepicker plugin using the following instruction: http://recras.github.io/angular-jquery-timepicker/

The dropdown is working, however when I click on a time in the dropdown, the time isn't pushing tot the ng-model 'date'. When I click within the 'input text box' I can add extra value to the text boxes. Than he value is right. What am I doing wrong?

app.js - file
var app = angular.module("bezoekersApp", ["xeditable", "ui.timepicker"]);

additional file.js - file

$(".timepicker").timepicker({
        timeFormat: 'HH:mm',
        interval: 30,
        minTime: '7',
        maxTime: '19:00',
        startTime: '07:00',
        dynamic: false,
        dropdown: true,
        scrollbar: true,
    });

html:

<input ng-model="date" ui-timepicker />
<span ng-model="date" ui-timepicker>{{ date | date:'shortTime' }}</span>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions