Friday, 16 August 2013

How to implement global widget, e.g. datepicker and use it direcive (Angular.js)

How to implement global widget, e.g. datepicker and use it direcive
(Angular.js)

I need to create one global calendar - datepicker. I create directive and
put it to my body.
Then I want to somehow pick date from different directive and I just don't
know how. Problems are...
How to call something like calendar.show() from different directive?
How to create a callback and pass it to calendar as "day click action"?

No comments:

Post a Comment