Angular 基于另一个div角度形状选项选择使div可见/隐藏
设置div visible/hidden时出现问题。 更改嵌套div中的选项时,将当前选项设置为隐藏,其他选项设置为可见。 我对此有意见。无论你做什么改变,它都不会隐藏另一个div。 以下是plunker:Angular 基于另一个div角度形状选项选择使div可见/隐藏,angular,typescript,Angular,Typescript,设置div visible/hidden时出现问题。 更改嵌套div中的选项时,将当前选项设置为隐藏,其他选项设置为可见。 我对此有意见。无论你做什么改变,它都不会隐藏另一个div。 以下是plunker: 您缺少这个。isOtherPay=true在change函数中,其中关键字此与当前上下文(即类本身)相关 编辑:以下是完整的代码 In the above Plunker, if I select an option, then it should hide the Production
您缺少
这个。isOtherPay=true
在change
函数中,其中关键字此
与当前上下文(即类本身)相关
编辑:以下是完整的代码
In the above Plunker, if I select an option, then it should hide the Production Type drop-down and show only Credit Card and Bank Account.
Thanks
Karthey