javascript - How to display model attribute in AngularJS using Spring MVC -
i trying switch pure javascript implementation using angularjs. unable figure how use model attribute form using angularjs.
controller
@modelattribute("frequencies") public frequency[] frequencies() { return frequency.values(); } @modelattribute("genders") public gender[] persongender() { return gender.values(); } @requestmapping(value="uform", method=requestmethod.get) public string loaduformpage(model m) { return "usermanagment"; }
the initial jsp displayed enum
s as:
<form:select path="gender" id="genderoptions"> <form:option value="">select gender</form:option> <c:foreach items="${genders}" var="gender"> <form:option value="${gender}">${gender}</form:option> </c:foreach>> </form:select>
i looking angularjs equivalent of jsp code since in angularjs data passed json.