Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使编辑按钮在角度 7 的数据表中工作。我还想知道如何在按钮单击时加载组件,
好的,这是我实现它的想法
首先让我们使用的按钮工作(点击)
<button (click)="toggledata()">Show</button> <demo-component *ngIf="value"></demo-component>
.ts
value = false; toggledata() { this.value = !this.value; }