Guest User

Untitled

a guest
Apr 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. angular.element("get angularjs controller element").scope().myfillingFunction(javaObjectsList)
  2.  
  3. And in angularjs i have method
  4.  
  5. $scope.myfillingFunction = function(list){
  6. console.log("input: "+list)
  7. $scope.productList=list;
  8. }
  9.  
  10. List<MyObject> objList = new List<MyObject>();
  11. String objJSON = new Gson().toJson(objList);
  12.  
  13. <script>
  14. var jsObject = angular.fromJson(<%= objJSON %>);
  15. </script>
Add Comment
Please, Sign In to add comment