OddDev
OddDev

Reputation: 1611

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

Upvotes: 0

Views: 1592

Answers (2)

danday74
danday74

Reputation: 56936

I am an Angular developer and I work with a Spring Java team.

I believe they use Spring BOOT

http://projects.spring.io/spring-boot/

Spring BOOT produces RESTful APIs and our Angular application makes HTTP requests to those APIs and Spring returns JSON responses.

Upvotes: 0

ACV
ACV

Reputation: 10562

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

Upvotes: 1

Related Questions