如何在Angular2中实现可折叠边栏?

如何在Angular2中实现可折叠边栏?

问题描述:

我正在学习angular2,并希望实现可折叠的侧边栏,类似于 https://almsaeedstudio .com/themes/AdminLTE/index2.html ,在Angular 2中?我尝试查找示例,但找不到任何示例.您可以为此提供示例或文档吗?

I'm learning angular2 and looking to implement a collapsible sidebar, similar to https://almsaeedstudio.com/themes/AdminLTE/index2.html, in Angular 2? I tried looking up examples but couldn't find any. Can you provide examples or documentation for it?

您可以使用ng2-bootstrap:

You could use ng2-bootstrap:

https://valor-software.com/ng2-bootstrap/#/手风琴

您还可以在源代码中检查其实现方式:

You can also check in the source code how it's implemented:

https://github.com/valor-software/ng2-bootstrap/tree/development/components/accordion