How to make a value selected by default using angularjs ng-options in select box

    You can build your controller like below TestController
    var TestController = function($scope) {

        $scope.person = 1;

        $scope.persons =
        [
            { id: 1, name: "Mohit" },
            { id: 2, name: "Rajeev" },
            { id: 3, name: "Yashwant" },
            { id: 4, name: "Hamender" }
        ];      
    };
    Below is the how we can render the select in view. Mohit is selected by default there
    <select data-ng-model="person"
            data-ng-options="t.id as t.name for t in persons">              
    </select>
    Note: 1. data-ng-options will work only if data-ng-model is specified 2. if you don't want any value selected by default. You don't need to specity $scope.person=1
    5
    Average: 5 (1 vote)