Datepicker in a modal doesn't work

Honestly, the detail page should not have access to the modal at all. That modal is defined in the ApptsIndexCtrl scope. Once you go to the detail page, you should no longer be in that scope. You should be under the ViewCtrl scope. However, Ionic doesn’t destroy the Modal scope when you navigate. Thats good and bad. Say in a large application, you have a modal. If the user every opened that modal, it is stuck throughout the app and wasting resources.

See : Modals Persist Between States

However, I think the main problem is stemming from our hack at getting the modal to display the calendar. Really, this jQuery stuff should be put in a directive.

See http://jsfiddle.net/FVfSL/
https://github.com/monterail/angular-date-range-picker