Dropdown depends on other dropdown - angularjs

后端 未结 1 1621
不思量自难忘°
不思量自难忘° 2020-12-20 04:35

I\'m having data in the form given below

   var servers =   [
           {
               \"name\": \"server1\",
               \"version\":
               [         


        
1条回答
  •  醉话见心
    2020-12-20 04:49

    You need to tweak your HTML template, so that the first drop down is displaying the server name, and that the options for the 2nd drop down are based upon the versions in the selected drop down (ngModel of the first drop down).

    working fiddle here

    0 讨论(0)
提交回复
热议问题