I am trying to setup the Angular Material 2 in a Angular CLI project. I'm using the last versions. I added the references in the module and component file but when I try to used it noting is working. I followed all the steps from the setup instructions from the documentation but still not working. And I have no errors.
I can give you an example for the Datepicker component.
import { MdDatepickerModule, MdNativeDateModule } from '@angular/material';
.
.
.
exports: [
...
MdDatepickerModule,
MdNativeDateModule,
...
],
imports: [
...
MdDatepickerModule,
MdNativeDateModule,
...
]
Here is my main.ts
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule);