Share This Article
Angular Material is a UI library. This library is very useful for Angular developers for creating UI fast and interactive in minimal time. In this many types of components, predefined styles are available.
Installation Steps for Angular Material
- npm install -g @angular/cli
- npm install @angular/material @angular/cdk @angular/animations –save
- ng add @angular/material
After that we can use different modules from this library.
Getting Started. You can run an angular project with nodemon also like this.
Some Important features of Angular Material
- Responsive design
- In-built CSS for UI components
- You can create your own styling for its predefined UI Components
- Includes effective and latest design of common user interface controls such as buttons, check boxes, and text fields which are adapted to follow Material Design concepts.
- browser portability, device independence, and graceful degradation.
- There are new features or we can say new and advanced components are available. Some of these features are cards, toolbar, speed dial, side nav, swipe, and so on.
- In this developers can configure their own theme with $mdThemingProvider during application configuration. The following properties can be used to assign different color palettes.
- primaryPalette
- accentPalette
- warnPalette
- backgroundPalette
Angular/CDK
The Component Dev Kit (CDK) is a set of behavior primitives for building UI components. This gives developers solid, fully tested and highly effective facilities to add common interaction patterns.
When you want to write a generic, reusable component library then you can
use CDK . It helps you to build what you need in less time with minimal effort.
There are many Categories of angular CDK.
Angular Material DatePicker
According to its name, it is used for picking up dates.
import{MatDatepickerModule}from’@angular/material/datepicker’;
Some Important Angular Material Built-in Directive
- md-autocomplete
- md-autofocus
- md-card
- md-chips
- md-dialog
- md-divider
- Md-fab-speed-dial
- Md-grid-list
- md-ink-ripple
- md-nav-bar
- Md-progress-circular
- Md-slider
- Md-swipe-down
- Md-switch
- Md-tab
- Md-toolbar
- md-tooltip
- Md-truncate
- md-virtual-repeat
- md-virtual-repeat-container
- md-whiteframe
Finally, If you are looking to hire Angular Developers for your Development needs, Extern Labs is here to provide you with the best Skilled and Experienced Angular Programmers and Developers.