I am trying to pass list of java objects to angularjs variable so I can use their properties in html like {{object.name}}. I run angularjs function from script like
angular.element("get angularjs controller element").scope().myfillingFunction(javaObjectsList)
And in angularjs i have method
$scope.myfillingFunction = function(list){
console.log("input: "+list)
$scope.productList=list;
}
In console i can see only
"Input:"
$scope.myfillingFunction(javaObjectsList)?