Component.Html在这里,我有一个来自Component.css的类(InfoSection)和一个来自component.ts的ngStyle=FooterStyle,我想创建一个条件
<div class="infoSection **(else Run this when Flag===0)**&q
1期
我有一个容器组件ContainerComponent和子组件ChildComponent。我希望通过控制ContainerComponent修改子组件的呈现和总体行为。使用的2项技术
export class ContainerComponent但是,来自呈现器的修改不会生效,因此在运行时css属性并不存在。
单击按钮时会出现此框,即此单击会将类添加到框中。当框出现时,它有两个按钮-这两个按钮都会对框做一些操作。has appeared, and enlarged
'box-regular appear'" > // here the box has appeared 现在,当我运行这个程序时因此,基本上,我在这里做错了什么?:)