【发布时间】:2020-05-27 15:44:19
【问题描述】:
我正在开发一个 Angular 7 项目,现在我必须开发一个页面结构,其中包含上部和静态部分,用户可以使用 mat-select 材料组件在不同选项之间进行选择。 根据选择的选项,我想在页面中显示不同的内容。
<div>
<div>
<mat-select>
<mat-option>option1</mat-option>
<mat-option>option2</mat-option>
<mat-option>option3</mat-option>
</mat-select>
</div>
...here I want to change dinamically between content1 || content2 || content3 based on the selection above...
</div>
如何根据选择动态控制内容?
提前感谢您,如果您需要更多详细信息,请告诉我。
【问题讨论】:
标签: angular angular-material angular-material-7