P
P
Pantene7422018-02-01 15:03:01
Angular
Pantene742, 2018-02-01 15:03:01

Angular 1.6 (Components) How to pass data between two components?

Inside the parent component, there is a child component that displays a list of users and three of the attribute. On click, you need to load the Full Information in the Parent and display it in the parent.
How to do it. It is necessary to do with such an architecture of components.
And use two methods of communication between components.
As I understand it, routes will not work because they load the component. and we need to display the information in the already
created tags (ng-switch-on), the campaign will come in handy. (Is it possible to make links somehow with the help of routes?)
How can this be done ???
5a7301f004899412166937.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2018-02-01
@healqq

Just pass from the parent component to the child through the binding a function like onClick(id: Int).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question