In servlet I got something like:
Map<String, String> myFruits = giveMeSomeFruits();
request.serAttribute("myFruits", myFruits);
And in .js I got:
<label ng-repeat='(key, value) in myFruits'>
<input type='checkbox' value='{{value}}' ng-click='eat(value)'/> {{key}}
</lable>
Now I need to pass the map myFruits from servlet to angularJs, is there any clean way to do that?