自述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 {}