This is why in the above example it is sent to the function setJsonLd as a parameter, instead of a dependency of service itself. AdDirective injects ViewContainerRef to gain access to the view container of the element that will host the dynamically added component.. Templates. Your submission has been received! Accepts the list items either through local or remote service and binds it to the component. Dropdown is used to make a group of objects that will come out by clicking on it. Adding the lines property to a list will adjust the bottom borders of all of the items in the list. Tutorial: routing in single-page applications. Thanks for contributing an answer to Stack Overflow! DOWNLOAD. Share. Where should I put