AngularJS Select

1. How to create a select box using ng-option?

To create a drop-down list you should use ng-option directive. ng-option allow the selected value to object.

{ajs-select}

 

2. How to create a select box using ng-repeat?

We can use ng-repeat for drop down list .The drop-down made from ng-repeat is a string.

{ajs-ng-repeat}