Access array in $ parent AngularJS

0

I'm trying to access a property of $ parent, which is an array and I can not recover it.

If I access, in the same way, a variable String, there is no problem in displaying it.

I would need to know how to retrieve that value from the entire array.

I access the following from the controller

$scope.$parent.string

In this there is no problem, write me the name

But when accessing

$scope.$parent.array

Returns undefined

    
asked by Diego 11.04.2018 в 11:48
source

0 answers