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 enums 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.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo