Angular Material

Material

We can use Material Component powered by Google.
@angular/material is Material Design components for Angular.

How to use(example)

Install

npm install --save @angular/material @angular/cdk @angular/animations

app.module.ts

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { MatButtonModule, MatCheckboxModule } from '@angular/material';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';

@NgModule({
  imports: [
    CommonModule,
    BrowserModule,
    FormsModule,
    MatButtonModule,
    MatCheckboxModule
  ],
  declarations: [AppComponent],
  bootstrap: [AppComponent]
})
export class AppModule { }

Component (example)

app.component.ts

import { Component } from '@angular/core';
import { MatButtonModule, MatCheckboxModule } from '@angular/material';

@Component({
  selector: 'app-root',
  template: `
    <div>
      <mat-checkbox &#91;(ngModel)&#93;="checked">Checked</mat-checkbox>
      <button mat-raised-button color="primary">Primary</button>
    </div>
  `
})
export class AppComponent {
  checked = true;
}