Angular 4 - Component selector not working in custom directive
问题 I am working with HTML 5 drag and drop in Angular 4. I created two custom attributes directive to handle drag and drop events. Everything works fine except when i am trying to drag a component selector i expected it should be converted to HTML elements. But component selector itself there - <div><ang-textfield></ang-textfield></div> I implemented ang-textfield component selector and also added to app.module declarations Here are two directives - @Directive({ selector: '[dragTextField]' })