Month: June 2018

Communication between component using @Input and @Output in angular 4

reactive form

Component communication in angular 4 can be done using @Input and @Output decorator. If you are new to angular 4 then go through the given link How to start with angular 4. @Input() : @Input decorator binds a property within one component (child component) to receive a value from another component (parent component). This is one-way communication from parent to child. The component property should be annotated with the @Input decorator to act as input property. A component can receive a value from another component using component property binding. Now we will see how to use @Input. It can be… Read More

Read More »