Created a directive to convert an input element into Calendar using jquery datepicker. The input elements are generated using ng-repeat, so they have dynamic id.
<div ng-repeat="id in ids"><input type="text" id="{{'txtDate' + id}}" ng-model="selectedDate" set-mask /></div>
The datepicker registers the input element id as angular expression - input#{{'txtStartDate' + id}}. So i could not select the date. It throws "Uncaught Missing instance data for this datepicker".
How do i create a datepicker once the angular evaluated the expression and sets the id of the input.