Possible Duplicate:
How to make a preselection for a select list generated by AngularJS?
In the angular tutorial they set a sortOrder scope variable that defaults the sort by select to 'Newest'.
In my fiddle I am doing similar but my select value is not selected. Instead i get the blank entry as if i did not set any value in the scope. Yet I can see my sort order and i am emitting the value of the select and it is preset.
//set a default this way also, but not updating the dropdown
$scope.ddlFilter = {
name: "All Open Events",//doesn't matter what this is, only cares about value
value: "ALL"//"OPEN"
};
I know i can use ng-init to set defaults but i want to be able to do it this way as well. Any suggestions?