katemihalikova / ion-datetime-picker

Date and/or time picker for awesome Ionic framework
MIT License
168 stars 101 forks source link

Does not work together with ion-item or any other directive with isolated scope #18

Closed firmanhidayat closed 7 years ago

firmanhidayat commented 8 years ago

Error: [$compile:multidir] Multiple directives [ionDatetimePicker (module: ion-datetime-picker), ionItem] asking for new/isolated scope on:

katemihalikova commented 8 years ago

Definitely a bug, thanks for the catch.

katemihalikova commented 8 years ago

Workaround for now is to use these directives on different elements.

huangfang2015 commented 8 years ago

transform ion-item to div.

firmanhidayat commented 8 years ago

yes. I try this 👍

`

{{dateValue2| date: "yyyy-mm-dd H:mm:ss"}}

`

work well.

thank you

jonathan-chin commented 8 years ago

I'm getting the same error. maybe you can edit the readme to show a different example?

katemihalikova commented 8 years ago

Changed readme to accommodate that, thanks!

katemihalikova commented 7 years ago

As I don't see an easy fix for that and a workaround exists, let's call it wontfix for the current version. The next version will use component() syntax of angular 1.5, so this problem won't happen anymore.