使用Angular我想仅在侧边栏中显示选定的选项
嗨,我在Angular Material进行一个项目Whaich在Side Bar中有许多组件,我想在侧栏中实现选择选项以显示选定的选项。任何提示或引用某些文档的提示都将受到高度赞赏。
hi i am doing a project in angular material whaich have many components in side bar i want to implement a select option in side bar to show only selected ones.Any hint or reference to some documentation will be highly appreciated.Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您的解释:您的侧边栏是一个包括子组件的父组件,您需要一种通过父母与这些孩子进行交流的方法。
资源:
https://angular.io/guide/guide/guide/inputs-unputs-ustputs
https> https:// dev。到/riapacheco/parent-child-compontent-communication-with-and-and-and-and-vanilla-js-1pae
as per your explanation: your sidebar is a parent component that includes child components and you want a way to communicate interaction with these children through the parent.
resources:
https://angular.io/guide/inputs-outputs
https://dev.to/riapacheco/parent-child-component-communication-with-angular-and-vanilla-js-1pae