can u plz help i am also facing same issue
can u plz help i am also facing same issue
i copied same what u mentioned in the above link eventhough i am getting error.
i am unable to find the solution
i shared the component file check once and i installed the dependencies also
can u suggest what exactly required dependencies in nodemodules for daterangepickers
thnx for advance help me
|
<ejs-daterangepicker placeholder='Select a range'>
<e-presets>
<e-preset label="This Week" [start]='weekStart' [end]='weekEnd'></e-preset>
<e-preset label="This Month" [start]='monthStart' [end]='monthEnd'></e-preset>
<e-preset label="Last Month" [start]='lastStart' [end]='lastEnd'></e-preset>
<e-preset label="Last Year" [start]='yearStart' [end]='yearEnd'></e-preset>
</e-presets>
</ejs-daterangepicker> |
|
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { HighliteContentCreateComponent } from './highlite-content-create.component';
import {DateRangePickerModule} from "@syncfusion/ej2-angular-calendars";
@NgModule({
declarations: [
AppComponent,HighliteContentCreateComponent
],
imports: [
BrowserModule,
FormsModule,DateRangePickerModule
],
providers: [],
bootstrap: [AppComponent, HighliteContentCreateComponent]
})
export class AppModule { } |
|
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-calendars/styles/material.css';
|
I had the same issue.
The stackblitz example is helpful, and I compared my code with that.
The missing dependency is you need to import the DropDownListModule as well as the DateRangePickerModule to avoid this "preset" error
Hi Jonathan,
Thanks for the update. Please get back to us if you need any further assistance on this.
Regards,
Udhaya Kumar D