I need to hide the hamburger, styles hide the content, but not the component. Is it normal practice to add a class to a component and write styles on it? thanks for the help enter image description here
- 积分
0 - 话题
0 - 评论
3211 - 注册排名
1465
I need to hide the hamburger, styles hide the content, but not the component. Is it normal practice to add a class to a component and write styles on it? thanks for the help enter image description here
否则,您可以简单地保留* ngIf来显示和隐藏该组件
我建议您使用类似的指令
*ngIf
正确时,请显示汉堡包。 您必须添加html代码
在包含汉堡包的组件中,带有条件的变量showHamburger。真实,显示汉堡包,真实,显示汉堡包