I am using angular material from https://material.angular.io .
I followed the steps in getting started and added all dependencies. Everything works fine except checkboxes and buttons.
When I use the syntax mentioned here https://material.angular.io/components/component/checkbox for checkboxes I am getting two checkboxes as shown below
Also I am not getting any ripple styles. Same thing with radio buttons. Can someone help me how to solve this?
Below is my code for app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import { AppComponent } from './app.component';
import {MdButtonModule, MdCheckboxModule} from '@angular/material';
import { SampleComponent } from './sample/sample.component';
import 'hammerjs';
@NgModule({
declarations: [
AppComponent,
SampleComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
BrowserAnimationsModule,MdButtonModule, MdCheckboxModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>AngularMaterialTest</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="../node_modules/@angular/material/prebuilt-themes/indigo-pink.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<app-root>Loading...</app-root>
</body>
</html>
app.component.html
<h1>
{{title}}
</h1>
<md-checkbox>Check me!</md-checkbox>

materialfiles and css in your app? - Bhavik Patel