This article describes how to send data from one component to other with the help of “@Input” and “@Output” decorators. These decorators are used to communicate between Child and Parent components or directives. With the help of this simple example in the article you will get a basic idea about Parent-Child communication in Angular and then you can switch to complex examples.
// Before moving to the example, lets get a rough idea about the following terms that are common while working with Input and Output. //
// Before moving to the example, lets get a rough idea about the following terms that are common while working with RXJS. //
Question no: 1:- What is Angular?
Angular is a binding framework which binds the View with Model. It is used for front end development to build web and mobile applications. It is used to build SPA i.e. Single page application by using concept of routing.
Question no: 2:- Why you need Angular framework?
Before Angular, developers had to write the binding code between View and Model manually which was very time consuming and complex. To overcome this we use Angular Framework.
Question no: 3:- How to install Angular?
Steps to install angular:-
1) Open Node.js command prompt.
2) Go to the directory in which you want to install Angular. …