Skip to content

Installation version 4.0.0 #550

@ayrancd

Description

@ayrancd

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions