Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

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

Closed
firmanhidayat opened this issue Apr 25, 2016 · 7 comments

Comments

@firmanhidayat
Copy link

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

@katemihalikova
Copy link
Owner

Definitely a bug, thanks for the catch.

@katemihalikova katemihalikova added this to the v0.2.0 milestone Apr 25, 2016
@katemihalikova katemihalikova self-assigned this Apr 25, 2016
@katemihalikova
Copy link
Owner

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

@huangfang2015
Copy link

transform ion-item to div.

@firmanhidayat
Copy link
Author

firmanhidayat commented Apr 25, 2016

yes. I try this 👍

<ion-content class="padding"> <ion-list> <div class='item' ion-datetime-picker ng-model="dateValue2"> {{dateValue2| date: "yyyy-mm-dd H:mm:ss"}} </div> </ion-list> </ion-content>

work well.

thank you

@katemihalikova katemihalikova modified the milestones: v0.2.0, v1.0.0 May 18, 2016
@katemihalikova katemihalikova changed the title Does not work for me Does not work together with ion-item or any other directive with isolated scope Jul 20, 2016
@jonathan-chin
Copy link

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

@katemihalikova
Copy link
Owner

Changed readme to accommodate that, thanks!

@katemihalikova katemihalikova removed this from the v1 milestone Mar 16, 2017
@katemihalikova katemihalikova removed this from Planned in v1.0 Mar 16, 2017
@katemihalikova
Copy link
Owner

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.

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

No branches or pull requests

4 participants