角色材料2组件中的“cdk”是什么?(What is `cdk` in Angular Material 2 components)
在角材料源的多个位置,有一些元素/ css类,它们以cdk为前缀。
有谁知道cdk在角质素上下文中的缩写?
In multiple places within angular material source, there are elements/ css classes that have cdk as their prefix.
Does anyone know what the abbreviation for cdk in angular material context?
最满意答案
CDK是component dev kit的简短形式。 这意味着这些是用于构建未耦合到材料设计的组件的通用工具
从material2更新日志
core/几个组件(如Overlay)将其前缀更改为cdk- (“component dev kit”的简称)。 这意味着这些是用于构建未耦合到材料设计的组件的通用工具。旧选择器仍然可以不推荐使用,但将在下一个版本中删除。 CSS类已更改。有关如何使用cdk组件(如表,覆盖,门户网站,门户网站主机等)的更多信息,您可以在这里找到示例:
https://github.com/angular/material2/tree/master/src/demo-app https://medium.com/@caroso1222/a-first-look-into-the-angular-cdk-67e68807ed9bCDK is the short form of component dev kit. This signifies that these are general-purpose tools for building components that are not coupled to Material Design
From the material2 changelog
Several components in core/, such as Overlay, have had their prefix changed to cdk- (short for "component dev kit"). This signifies that these are general-purpose tools for building components that are not coupled to Material Design.The old selectors are still available as deprecated but will be removed in the next release. The CSS classes have been changed.For more info on how to use cdk components such as table, overlay, portal, portal host, e.t.c, you can find examples here:
https://github.com/angular/material2/tree/master/src/demo-app https://medium.com/@caroso1222/a-first-look-into-the-angular-cdk-67e68807ed9b更多推荐
发布评论