In this example, ng-init will initialize array of objects named Arrs and the field of array is bind with ng-options in drop-down list which generate list of options in drop-down as name of flowers. ng-init code: ng-init="Arrs=[{name:'Tulip'},{name:'Sunflower'},{name:'Merrygold'}];name='Tulip'" See code snippet:

<!DOCTYPE html> <html xmlns=""> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src=""></script> </head> <body ng-app> <div> <div ng-init="Arrs=[{name:'Tulip'},{name:'Sunflower'},{name:'Merrygold'}];name='Tulip'"> Flowers <select ng-model="name" ng-options=" as for arr in Arrs"></select> </div> </div> </body> </html>