Angular 1.6 (Components) How to establish data transfer between the two components?

Inside the parent component is located subsidiary, which displays a list of users and three of the attribute. On click need to load in the Parent information and display it in Parana.

How to do it. Need to do it with this component architecture.
And use two methods of communication between components.

I understand ranting will not work as they load the component. and we need otobrazit information already in the campaign
created tags (ng-switch-on) will be useful. (Whether it is possible with help of ranting to do links ?)

How can I do that ???
June 8th 19 at 17:02
1 answer
June 8th 19 at 17:04
Just pass from parent component to child via binding type function onClick(id: Int).
we do the ng-repeat inside a child. and at each iteration we output ng-click="parent.Onclick(id)"
as we in template to access function in parent ? - Pansy.Fe commented on June 8th 19 at 17:07
No, you should never try to get something from parent to children.
All children need to pass through binding. If you want to pass a function - it is necessary to pass to the child through binding
bindings: { 
 onClick: '&'
- willow.Hand commented on June 8th 19 at 17:10
, I understand nothing. The fact that I studied Angular5
I simply do not understand the principles of the previous version.

Look in reacte all clear Vue as well. The first just a headache. Got to be due to the fact that the concepts are also called itself but vyhledat a little differently. - Pansy.Fe commented on June 8th 19 at 17:13

Find more questions by tags AngularFrontend