title: Get value from springboot modelview object into angular JS 5
body: <p>I am developing an app where we get request from different apps ( with data) and I need to populate form in my app with those data. I do not use any database.</p>
  
  <p>I want to use springboot with angular js.</p>
  
  <p>This is what I tried</p>
  
  <p>in my spring controller</p>
  
  <pre><code>@Slf4j
  @CrossOrigin(origins = "*")
  @RestController
  public class ComplainsController {
  
    @CrossOrigin(origins = "*")
    @RequestMapping(value = "/aalcomplaint/api/complaint/lodge-complaint", method = {RequestMethod.GET, RequestMethod.POST})
    public ModelAndView lodgeComplaint(final HttpServletRequest request, ModelAndView modelAndView, final RedirectAttributes redirectAttributes) {
       modelAndView.addObject("policyNumber","12345");
      modelAndView.setViewName("redirect:/list-complains");
      return modelAndView;
    }
  
  }
  </code></pre>
  
  <p>My question is how can I get modelview object in angular js application?</p>
  
  <p>PS: I can get query params but I have too much data and there is limit on number of characters you can put in URL.</p>