component is only fetching and passing the initial data to the
. Have a look at this simple img element. Part of the confusion may be due to the fact this topic is often left out of introductions to Web Components. var list = document.querySelector("custom-list"); list.getAttribute("filter"); // -> "Hello World". How to pass data from Child Component to Parent Component. Basically props are used to … This element now has an attribute called src, many others could be set as well, such as alt or width. In this post, I show you how to pass property or field from one component to another in Angular 8.