I have had this problem for some time. I used the "hacker" way to access the variable added as a modal attribute in the backend.
let's say you added "some-data"to the model as shown below.
model.addAttribute("some-data-id", "some-data");
in jsp where ctrl initializes adding an attribute to a hidden html element such as span
<span style="display:none" id="someDataId">${some-data-id}</span>
and in the controller, extract the value with angular.element('#some-data-id').innerHTML
Malik source
share