Stack: AngularJS 1.2
The issue I am facing is making the select box selected to the default value ("Shipped") passed on by the server for order.status field in JSON -
{
"id": "52b4216330045ba67a99175c",
"productIdentity": {
"name": "X",
"description": "test"
},
"status": "Shipped"
}
Controller:
https://gist.github.com/pawank/8079603
HTML:
https://gist.github.com/pawank/8079624
Problem 1: How to make the select box with ID - "selectedStatus" set to default value "Shipped"?
Problem 2: "order.comment" is not getting passed on to Controller in save_order_edit_form()
function from the HTML on click of "Save Changes"
Any help is appreciated.
Thanks,