Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 如何从左侧渲染侧面板?_Angular - Fatal编程技术网

Angular 如何从左侧渲染侧面板?

Angular 如何从左侧渲染侧面板?,angular,Angular,我有一个sidenav组件,它正在从一个按钮切换。 但在被切换时,它是从顶部打开的,但我希望它从左侧打开。 我如何实现它? 我的导航组件: 课程详情 账户 用户配置文件 联系我 G速度 您忘记了mat sidenav组件中的模式属性 综合考虑,我猜您误用了sidenav组件。根据,您应该将链接列表放在mat sidenav组件中。mat sidenav content的内容是页面的真实内容。例如,您的app.component.html可能看起来像: ... 我确实喜欢这门课程,在我的n

我有一个sidenav组件,它正在从一个按钮切换。 但在被切换时,它是从顶部打开的,但我希望它从左侧打开。 我如何实现它? 我的导航组件:


课程详情
账户
用户配置文件
联系我
G速度

您忘记了
mat sidenav
组件中的
模式
属性


综合考虑,我猜您误用了
sidenav
组件。根据,您应该将链接列表放在
mat sidenav
组件中。
mat sidenav content
的内容是页面的真实内容。例如,您的
app.component.html
可能看起来像:


...

我确实喜欢这门课程,在我的navigation.component.html中详细介绍了胡椒盐hello。我看不到patt.hello部分正在呈现。另外,我正在像这样导入它main app.component.html。有一个例子正好如此你需要什么。该示例称为Sidenav打开和关闭行为。你应该检查一下,看看你的代码有什么不同。