Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
600
IgDatePicker Angular2 Component Failed to Load
posted

Hello Team,

I have downloaded Igniteui-angular2 npm package. 

I have defined following in my angular2 component to use IgDatePicker Component. 

import {Component} from '@angular/core';
import {FORM_DIRECTIVES} from '@angular/forms';

import {IgDatePickerComponent} from 'igniteui-angular2';

@Component({
selector: 'Detail',
directives: [FORM_DIRECTIVES, IgDatePickerComponent],
template: ` <ig-date-picker widgetId="PlannedStartDate" [options]="{width:'100%'}"></ig-date-picker>`
})

export class DetailComponent{}

I am getting error in Igniteui.angualr2 while loading IgDatePicker as following ,

ORIGINAL EXCEPTION: TypeError: Cannot read property 'prototype' of undefined

platform-browser.umd.js:1900 TypeError: Cannot read property 'prototype' of undefined
at IgDatePickerComponent.IgControlBase (igniteui.angular2.js:114)
at IgDatePickerComponent.IgEditorBase [as constructor] (igniteui.angular2.js:645)
at new IgDatePickerComponent (igniteui.angular2.js:731)
at DebugAppView._View_ProjectDetailComponent1.createInternal (ProjectDetailComponent.template.js:218)
at DebugAppView.AppView.create (core.umd.js:11996)
at DebugAppView.create (core.umd.js:12207)
at TemplateRef_.createEmbeddedView (core.umd.js:10274)
at ViewContainerRef_.createEmbeddedView (core.umd.js:8344)
at NgIf.set [as ngIf] (common.umd.js:1741)
at DebugAppView._View_ProjectDetailComponent0.detectChangesInternal (ProjectDetailComponent.template.js:49)

Can you please help me with this? 

Awaiting for your help! 

Greetings

Jeet

Parents Reply Children
No Data