restorando / angular-pickadate

A simple and fluid inline datepicker for AngularJS with no extra dependencies.
MIT License
273 stars 91 forks source link

Expression 'undefined' used with directive 'pickadate' is non-assignable! #30

Closed Kraku closed 9 years ago

Kraku commented 9 years ago

This error occurs after upgrading to the latest version (#29).

<div pickadate ng-model="date"></div>
Error: [$compile:nonassign] Expression 'undefined' used with directive 'pickadate' is non-assignable!
gschammah commented 9 years ago

Hi @Kraku

what version of angular are you using?

Kraku commented 9 years ago

1.2.16

Kraku commented 9 years ago

It's my fault, sorry for wasting your time.

[edit]

I have not noticed that you undo the last merge, open again.

gschammah commented 9 years ago

I couldn't reproduce the bug but I reverted master to the last working version just in case.

gschammah commented 9 years ago

hi @Kraku

I didn't understand if you are still seeing the bug or not, since you reopened the issue

stefanmdt commented 9 years ago

Hi! We switched to the latest angular-pickadate.js and now the same problem appears:

Error: [$compile:nonassign] Expression 'undefined' used with directive 'pickadate' is non-assignable!
http://errors.angularjs.org/1.2.25/$compile/nonassign?p0=undefined&p1=pickadate

We use the angular version that is included in ionic framework bundle (1.0.0-beta.13).

Any ideas?

gschammah commented 9 years ago

Hi @stefanmdt, I assume you are using ng-model in a bad way. Can you create a gist with your setup?

stefanmdt commented 9 years ago

Hi @gschammah, thx for your quick reply.

Hope a codepen is also ok for you: http://codepen.io/anon/pen/myVNvX.