fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
246 stars 247 forks source link

Installation version 4.0.0 #550

Open ayrancd opened 4 weeks ago

ayrancd commented 4 weeks ago

I used npm to install it and I can see in the package.json everything is there...

In my .ts file I added import { NgxDaterangepickerMd } from 'ngx-daterangepicker-material';

and this is my .html

<input type="text" ngxDaterangepickerMd [(ngModel)]="selected" class="form-control"/>

No erros, but also no date range picker... I can't add

@NgModule({ imports: [ ... , FormsModule, NgxDaterangepickerMd.forRoot() ], declarations: [App], bootstrap: [App] })

it conflicts with

@Component({ selector: 'app-custom-reports', templateUrl: './custom-reports.component.html', styleUrls: ['./custom-reports.component.scss'],

changeDetection: ChangeDetectionStrategy.OnPush, //needed to display the report encapsulation: ViewEncapsulation.None // Enable dynamic HTML styles })

I am new to Angular... any idea of how to fix this?