How to set the initial selected value of a select element using Angular.JS ng-options & track by / (AngularJS & ASP.NET MVC) Gurustop.NET By @Meligy

  • Angular.JS will use the track by property value as the ‘s value .
  • Similar to the previous problem, use the track by syntax.
  • If you are using Angular 1.4+, check the much smaller 2nd part of this article, about how to use track by correctly.

Read the full article, click here.


@Meligy: “Which’s why these part 1

& part 2

posts get hundreds of daily views!”


I have been doing Angular.JS in production projects for months, that it did surprise me recently how I haven’t used drop-downs in it. Well, I mean how I haven’t used them enough to get into several problems I had in my current project, and other friends at the same office had in their project as well.


How to set the initial selected value of a select element using Angular.JS ng-options & track by / (AngularJS & ASP.NET MVC) Gurustop.NET By @Meligy

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.