如何在同一个应用程序中同时使用大屏幕和移动设备的 nz-zorro 库?

How to use both nz-zorro libraries for large screen and for mobile in the same application?

NZ Zorro 有 2 个布局不错的 angular 库,large screen and the mobile 版本。我是否需要创建 2 个应用程序,一个用于大屏幕,另一个用于手机?有没有办法在同一个 angular 应用程序中使用这两个库?

感谢您的帮助

你永远不应该做两个代码库。您应该遵循响应模式。 您需要根据用例呈现内容。

angular 中一个非常方便的库是 https://github.com/angular/flex-layout。 它有条件指令示例:

您可以 hide/show 根据您是否使用移动设备 (xs) 设置 div。