I've followed the guide on how to install angular material. First I added it via the cli
ng add @angular/material
In the app.module.ts I've added the following additional lines:
import {MatDatepickerModule} from '@angular/material/datepicker';
import { MatNativeDateModule } from '@angular/material/core';
imports: [
[...],
MatDatepickerModule,
MatNativeDateModule
],
providers: [MatDatepickerModule, MatNativeDateModule],
and in my HTML file I tried to create a datetimepicker
<mat-form-field color="accent" appearance="fill">
<input matInput [matDatepicker]="picker1">
<mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
<mat-datepicker #picker1></mat-datepicker>
</mat-form-field>
Unfortunately, the styling doesn't work at all. It looks like this:
Am I missing something?
Thanks in advance
edit: After adding the imports for MatFormFieldModule and MatInputModule it now looks like this which is still different from the tutorial:

