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

ng-model is not changing when choosing a date #117

Open
farzaneHashemi opened this issue Feb 7, 2018 · 0 comments
Open

ng-model is not changing when choosing a date #117

farzaneHashemi opened this issue Feb 7, 2018 · 0 comments

Comments

@farzaneHashemi
Copy link

Hi,
I have a strange problem which I can't have my ng-model variable changing when I choose a date on my calendar.
here is my code:
controller:
$scope.to1 = new Date();
$scope.ww = function () { console.log('to1', $scope.to1) }

html:
<adm-dtp ng-model="to1" on-close="ww()"></adm-dtp>

I keep getting today's date in console whether I choose today or any other date.

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

No branches or pull requests

1 participant