I am using this module in angle 2 and this error is being presented, you can help me.
app.module.ts
import {MyDatePickerModule} from "mydatepicker";
@NgModule({
declarations: [
AppComponent,
TestComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
MyDatePickerModule,
MaterialModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
test.component.ts
private myDatePickerOptions: IMyOptions = {
dateFormat: 'yyyy-mm-dd',
firstDayOfWeek: 'mo',
sunHighlight: true,
inline: false,
width: '60%'
};
test.component.html
<my-date-picker [locale]="locale" class="card-size" [options]="myDatePickerOptions"
(dateChanged)="onDateChanged($event)">
</my-date-picker>