angular - How can i implement vaadin date-picker in my angular2 forms -
hello guys have implemented vaadin date-picker in 1 of pages.i want assign formcontrol vaadin datepicker directive showing error
original exception: no value accessor ''
and have built form in way
<form [formgroup]="myform"> <div> <label for="skuinput">sku</label> <vaadin-date-picker label="pick date" [formcontrol]="sku"></vaadin-date-picker> </div> <button (click)="onsubmit(myform.value)">submit</button> </form>
and included datepicker directive this
directives: [form_directives, reactive_form_directives,date,polymerelement('vaadin-date-picker')],
what correct way use vaadin datepicker in angular2 forms? thanks
data binding between polymer elements (like vaadin-date-picker) don't work out of box. might work using angular-polymer adapter.
Comments
Post a Comment