Template:--------------
<RadCalendar id="calendar" row="1" col="0"
[eventSource]="eventSource"
[(viewMode)]="calViewMode">
</RadCalendar>
Component:----------------
@Component({
moduleId: module.id,
selector: 'calendar'
})
export class CalendarComponent implements OnInit {
calViewMode: any;
}
Error: ------------------------
ORIGINAL STACKTRACE: (c:\Users\brianp\Documents\SRC\2017\tns\cpapp\node_modules\@angular\core\bundles\core.umd.js:3496:31)
Error: Expression has changed after it was checked. Previous value: 'undefined'. Current value: '[object Object]'.
at ExpressionChangedAfterItHasBeenCheckedError.BaseError [as constructor] (/data/data/com.ekyros.cpapp/files/app/tns_modules/@angular/core/bundles/core.umd.js:1225:31)
at new ExpressionChangedAfterItHasBeenCheckedError (/data/data/com.ekyros.cpapp/files/app/tns_modules/@angular/core/bundles/core.umd.js:6549:20)
at checkBinding (/data/data/com.ekyros.cpapp/files/app/tns_modules/@angular/core/bundles/core.umd.js:6724:23)
at DebugAppView.View_CalendarComponent0.detectChangesInternal (/AppModule/CalendarComponent/component.ngfactory.js:142:7)
at DebugAppView.AppView.detectChanges (/data/data/com.ekyros.cpapp/files/app/tns_modules/@angular/core/bundles/core.umd.js:12587:18)
at DebugAppView.detectChanges (/data/data/com.ekyros.cpapp/files/app/tns_modules/@angular/core/bundles/core.umd.js:12734:48)
at DebugAppView.AppView.internalDetectChanges (/data/data/com.ekyros.cpapp/files/app/tns_modules/@angular/core/bundles/core.umd.js:12572:22)
at DebugAppView.View_CalendarComponent_Host0.detectChangesInternal (/AppModule/CalendarComponent/host.ngfactory.js:38:19)
at DebugAppView.AppView.detectChanges (/data/data/com.ekyros.cpapp/files/app/tns_modules/@angular/core/bundles/core.umd.js:12587:18)
at DebugAppView.detectChanges (/data/data/com.ekyros.cpapp/files/app/tns_modules/@angular/core/bundles/core.umd.js:12734:48) (c:\Users\brianp\Documents\SRC\2017\tns\cpapp\node_modules\@angular\core\bundles\core.umd.js:3497:31)
ERROR CONTEXT: (c:\Users\brianp\Documents\SRC\2017\tns\cpapp\node_modules\@angular\core\bundles\core.umd.js:3500:31)
[object Object] (c:\Users\brianp\Documents\SRC\2017\tns\cpapp\node_modules\@angular\core\bundles\core.umd.js:3501:31)
Error: Error in /data/data/com.ekyros.cpapp/files/app/pages/calendar/calendar.component.html:12:8 caused by: Expression has changed after it was checked. Previous value: 'undefined'. Current value: '[object Object]'. (c:\Users\brianp\Documents\SRC\2017\tns\cpapp\node_modules\nativescript-angular\zone-js\dist\zone-nativescript.js:344:17)