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 not working #338

Open
superdaminou opened this issue Feb 22, 2018 · 1 comment
Open

ng-model not working #338

superdaminou opened this issue Feb 22, 2018 · 1 comment

Comments

@superdaminou
Copy link

Hello,

I've got troubles to bind my date-time with my controller
In my html i've got
<input date-time ng-model='date' >

and in my controller i've got a un-initialized $scope.day but used in a method

after selecting my date with the date picker and running my function using $scope.day i can see that this variable is still blank
it's like the ng-model is not working with date-time

Do you have any clue or solution ?
Thanks

@jacksonrdlc
Copy link

@superdaminou you might need to use double quotes <input date-time ng-model="date" /> not single.

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

2 participants