I am trying to have 2 datepickers and I am using Angular UI version 0.11.0.
My HTML code
I have the easiest, one-line solution that does not require container objects, function calls or other hassles like preventDefault. You don't even have to declare this in scope because undefined is evaluated as false.
...
ng-click="dateOpened = !dateOpened"
...
I tested this with angular-ui 0.13.0 (Angular Bootstrap). This works because the invocation of ng-click is already trapping the default event.