Page 1 of 1

Calendar - No value accessor for ''

Posted: 06 May 2016, 20:15
by mcrockett
Hello all. I'm having trouble with Calendar, "No value accessor for '' in [model.Date in QuoteCreateFormComponent]". I'm following the example from http://www.primefaces.org/primeng/#/calendar. I have been unable to get this working. This is what my code currently looks like:

Code: Select all

<p-calendar class="form-control"
                                    #Date="ngForm"
                                    [(ngModel)]="model.Date"
                                    [ngFormControl]="quoteForm.controls['Date']"></p-calendar>
Side notes:
My value, model.Date, is a string.
I have tried removing the #Date="ngForm" line and the [ngFormControl]="quoteForm.controls['Date']" but still get the same result.
I'm using Angular2 beta 15. (maybe I need the newer version?)
I just installed primeng and primeui (literally today). I ran into an issue in splitbutton.d.ts where I had to change

Code: Select all

import { Location } from 'angular2/platform/common';
back to

Code: Select all

import { Router, Location } from 'angular2/router';