Want to have a default option in Angularjs select box? You can simply use ng-init like below example:
1 2 3 4 | <select ng-init="somethingHere = options[0]" ng-model="somethingHere" ng-options="option.name for option in options"> </select> |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.