How to access child component in AngularJS?

Point to the example in this case. and with components. If it is possible.

With this code in JSfiddle
paste the following code:
function ParentCtrl($scope) {
 $scope.cities = ["NY", "Amsterdam", "Barcelona"];
console.log($scope.$$childTail.goroda);
}

 function ChildCtrl($scope) {
 $scope.parentcities = $scope.$parent.cities;
 $scope.cities = ["Moscow", "Peter", "Vladivostok"];
 }


5a74635603bd0919557575.png5a74647ae2763628594511.png
June 8th 19 at 16:35
1 answer
June 8th 19 at 16:37
Here in the official documentation there are an example of communication between components included in transclude
https://docs.angularjs.org/guide/component#interco...
In General, for the transmission of values in the component binding < and to pass the value of the event is binding &
I read and tried. Enter in the require the name of the controller parent = undefined

I score in short. From the start taught ES6, TypeScrip and Angular5. Given the task on the ground.
I like the job the previous firm did in a day. here kapets. The documentation of the first
clumsy and stackowerlow with Scope, the examples with Component and examples of different versions
angular. (waiting for a response from the first company, don't want this first to even see) half a year not in vain taught

React in such a difference between versions ? You don't know ? - Pansy.Fe commented on June 8th 19 at 16:40
prntscr.com/i964p8

in template list-component - Pansy.Fe commented on June 8th 19 at 16:43
In the Internet a lot of legacy code in version 1.5+ trying to use an approach close to 5, but there is no observable out of the box.
If the code is found $scope so legacy code - Isaias_Medhurst commented on June 8th 19 at 16:46

Find more questions by tags AngularFrontend