How to make cascading Dropdown using Angularjs?

前端 未结 3 565
轮回少年
轮回少年 2021-01-22 01:11

Here i have Added list of mobile brand name with submodels. my expectation: 1.here nokia and samsung htc listed multiple times.how can i avoid same name repeated in list
2.w

3条回答
  •  無奈伤痛
    2021-01-22 02:16

    You have to build a recursive architecture :

    
    

    and there the subdropdown.html file :

    
    {{g.name}}
    

    As you can see in the subdropdown I call recursively the subdropdown html to create a cascading dropdown.

    I hope that will help you.

提交回复
热议问题