Hi ,
everyone
app.directive('example', function () {
return function (scope, element, attrs) {
angular.element(document).ready(function () {
alert("#"+attrs["id"]);
$("#" + attrs["id"]).datepicker({
showOn: 'button',
buttonImageOnly: true,
buttonImage: 'assests/images/calendar.png',
dateFormat: 'dd-mm-yy'
});
//MANIPULATE THE DOM
});
};
});
and html is-tr ng-repeat="item in delListdate track by $index" id="deltr">
<%--
--%>
id is alerted but calender is not showing but i fix the id it working fine and dynmically assign id is not working.

Bikesh SrivastavaPosted Feb 12, 2017, 2:01 PM