自述css
材料卡是由Google材料团队(也称为mdc-web)提供的卡片样式。 这是一个容许在AngularDart应用程序中使用样式的包装器。 有关如何使用这些样式的文档,请参阅mdc文档。 能够在这里找到示例。html
样式由包提供:angular_components/css/mdc_web/card/mdc-card.scss.css。要在Angular组件中使用这些样式,只需将其添加为Component注解中的styleUrls值便可。咱们建议在任何特定于组件的样式以前添加样式,以便您能够根据须要轻松覆盖样式值。java
@Component( selector: 'my-component', templateUrl: 'my_component.html', styleUrls: [ 'package:angular_components/css/mdc_web/card/mdc-card.scss.css', 'my_component.scss.css']) class MyComponent {}