I need to implement custom date picker.
For this I have date-picker.directive and select-date.component (dialog window).
I attach directive through attribute in html and can process events. By click event directive should call dialog window (it's our component).
<button class="btn" type="button" date-picker>
But how can I instantiate select-date.component from a directive?
How to add a new component into DOM?