Angularjs trigger country state dependency

后端 未结 4 2042
[愿得一人]
[愿得一人] 2021-01-05 13:03

Can someone please help me make my example of Country/State drop down dependency work?

I intentionally created JSON in this way because I want the dependency to be g

4条回答
  •  日久生厌
    2021-01-05 13:36

    The easiest way to fix is to refer the currentCountry in the 2nd select and no need to use the $watch to achieve your requirement.

    
    

    Demo

提交回复
热议问题