ng-options directive generate list of students using array of object "students".The selected student will show in textbox because selected student name bound to the Student variable with ng-model directive.

<!DOCTYPE html> <html xmlns=""> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src=""></script> </head> <body ng-app="Example"> <div ng-controller="ExampleController" ng-init="StudentId=1"> Students: <select ng-model="Student" ng-options=" as for student in students"></select><br /> Selected Student: <input type="text" ng-model="Student" /> </div> <script> var app = angular.module("Example", []); app.controller('ExampleController', ['$scope', function ($scope) { $scope.students = [{ name: 'Herry', id: 1, Address: 'St.Xavier Street' }, { name: 'John', id: 2, Address: 'St.Xavier Street 2' }, { name: 'Peter', id: 3, Address: 'St.Xavier Street 3' }]; }]); </script> </body> </html>