作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
它们可以在同一个文档页面上找到,但看起来是一样的。您知道从功能 Angular 来看的区别吗?使用一个比另一个有什么好处?
https://material.angular.io/components/sidenav/overview
首先感谢阅读。
最佳答案
从 documentation :
The sidenav components are designed to add side content to a fullscreen app.
The drawer component is designed to add side content to a small section of your app.
关于angular - MatSidenav 和 MatDrawer 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61074330/
它们可以在同一个文档页面上找到,但看起来是一样的。您知道从功能 Angular 来看的区别吗?使用一个比另一个有什么好处? https://material.angular.io/components
我正在使用带 Angular Material ,我想使用 viewchild 从另一个组件切换 Sidenav,但是当我尝试获取 mat-sidenav 元素时,我得到了未定义。这是我的代码 sid
我是一名优秀的程序员,十分优秀!