How can i create a common control in Angular 2/4?
问题 I have to create a control/template/common html which will have a drop down. This common control will call my data service and bind this drop down with data. I can create a component and have it's HTML as drop down and call the selector of the component in all my parent component. But, what I want is I need to pass key to this common control and this key will be sent to service and service will give only matching record and as per these records Dropdown will get bind. Here what my pseudo code