5,350
edits
(Created page with "[https://material.angular.io/ Angular Material] contains components for angular which follow material design. ==Getting Started== # Install Angular Material #: <pre>ng add @a...") |
|||
Line 5: | Line 5: | ||
#: <pre>ng add @angular/material</pre> | #: <pre>ng add @angular/material</pre> | ||
# Create a theme following [https://material.angular.io/guide/theming this guide]. | # Create a theme following [https://material.angular.io/guide/theming this guide]. | ||
==Components== | |||
See [https://material.angular.io/components/categories] for a list of components. | |||
To import a component, you use to add it to your <code>app.module.ts</code> file. | |||
{{ hidden | Example import | | |||
<syntaxhighlight lang="typescript"> | |||
import { MatSliderModule } from '@angular/material/slider'; | |||
@NgModule ({.... | |||
imports: [..., | |||
MatSliderModule, | |||
] | |||
}) | |||
</syntaxhighlight> | |||
==Themes== | ==Themes== |