i'm really liking angular for handling my UI, taking care of binding,
etc. however, i'm having difficulty with the way it posts back to the
server. my server side code is set up using a library that takes care
of binding request parameters to java beans (stripes). unfortunately,
it doesn't work with JSON data in the body of the request.
so, what i'm doing is using angular to populate forms but then
submitting them using jQuery (and jQuery.serialize()). the trouble is
that select controls populated using ng:options have option elements
like this:
<option value="0">myValue</option>
rather than this:
<option value="myValue">myValue</option>
is there a way that I can have the value attribute of the option tags
be a value string rather than an index? i was hoping inputType would
help but that doesn't seem to work on select elements.
here's a fiddle demonstrating my issue:
http://jsfiddle.net/007design/tXgJx/
thanks very much!
007