Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
- List<MyObject> objList = new List<MyObject>();
- String objJSON = new Gson().toJson(objList);
- <script>
- var jsObject = angular.fromJson(<%= objJSON %>);
- </script>
Add Comment
Please, Sign In to add comment