In this example ng-options directive generate list of students using array of object "students".The selected student will show in pre element because selected student name bound to the name 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> <div ng-init="students=[{name:'Herry'},{name:'John'},{name:'Peter'}]"> Students: <select ng-model="name" ng-options=" as for student in students"></select> <pre>Student: {{name}}</pre> </div> </body> </html>