Angular - Show or Hide based on Dropdown list value

后端 未结 4 1340
小鲜肉
小鲜肉 2020-12-18 11:33

I want my Dropdown list to show/hide Div based on the value selected

I have a dropdown list and several Div in my angular project as shown in the code



        
4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 12:19

    With replytype in ts you have two method

    First methode with *ngIf; else

    Application Name is required!

    Or second methode with ngSwitch (You can have many div to display)

    
        
    Application Name is required!

提交回复
热议问题