Parent-child communication
Learn Parent-child communication (Module 4 · Components, Angular) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Parent and child components, composition and reuse • A parent component places a child in its template with the child's selector, just like using an HTML tag. Composition means building big screens from small components (page, list, card, button). A reusable component gets its data from inputs rather than hard-coding it, and reports user actions through outputs . • Rule of thumb: data flows down (parent to child through inputs) and events flow up (child to parent through outputs). Think of a manager giving a task (input) and the worker reporting back (output).