Search code examples
javaangularjsjspspring-mvcangularjs-scope

Passing object from spring controller to ANGULARJS


I'm trying to create a CRUD system on a list and I need to pass the list from the controller of spring to ANGULARJS controller. Can someone point to the right direction pls? P.S: I already can receive the list and I can manipulate it in EL language


Solution

  • You need to use some JSON necoding library and let it encode your objects when you return them from your controller. Jackson might help.