My application uses SpringMVC with apache velocity. Now I am going to add Angularjs controllers to the *.vm files(velocity files). I am finding a problem in accessing the objects set in the ModelAndView objects returned by the Spring controllers.
Can someone give me a simple example on how to do the same?
Example: Controller.java
ModelAndView mav = ControllerUtil.createModelView();
String dataSource = Constant.DATA_SOURCE;
HttpSession session = (HttpSession) mav.getModel().get("httpSession");
**mav.addObject("dataSource", dataSource);**
Please give an example on how to get the 'dataSource' value inside the AngularJS module.
Thanks in Advance, DBKnot Team