doOnLoad and Angular

I want move doOnLoad() function to link in directive (Angular).
I need delete doOnLoad() from

I can’t do it.

And I need generate id for Calendar because I don’t know how many Calendar document will have.

it’s my code plnkr.co/edit/UKKmBBEc8ipARY5XSqI4?p=catalogue

hi

please try attached
html_to_copypaste.zip (733 Bytes)

Thanks, BIG MAN.

And if I wanted use icon with Calendar, I add to ‘template’ after

template: '<input type="text"  id="id'+index+'" ng-model="g'+index+'" ></input> <span><img id="calendar_icon" src="http://clans.worldoftanks.ru/media/clans/emblems/cl_582/2582/emblem_24x24.png" border="0"></span>',

I get Error “Template must have exactly one root element”
I add

template: '<DIV><input type="text"  id="id'+index+'" ng-model="g'+index+'" ></input> <span><img id="calendar_icon" src="http://clans.worldoftanks.ru/media/clans/emblems/cl_582/2582/emblem_24x24.png" border="0"></span></DIV>',

Calendar doesn’t show.
http://plnkr.co/edit/xYvOyuNpHMvVRUjBnpLw?p=preview

There are calendar samples online:
dhtmlx.com/docs/products/dht … r/samples/
Please, be guided it as possible.
We support dhtxml components, not Angular settings.

Thanks. I did it)

But. How can I know about value change? Input has value="".

I use

attrs.$observe("value", function (v) { alert('Date has been changed'); // it doesn't work });

You need use dhtmlx events for calendar:
docs.dhtmlx.com/doku.php?id=dhtm … dar_events