ng2-datetime
ng2-datetime copied to clipboard
getting error ( If ngModel is used within a form tag, either the name attribute must be set or the form )
can u suggest how to resolve the same.
is this module in active development?
have found the solution if it's not in development so that I can go and directly change the code in the node_module folder.
There is no change required to the source code. The error message clearly indicates what to do.
i understand but after doing the same changes other options not for ex.
<datetime [timepicker]="false" [(ngModel)]="date3" [ngModelOptions]="{standalone: true}">
now timepicker didnt hide.
well #164 fix the above issue also.
I hope this error solves if we just add the name tag to the element.
i.e,. <datetime [(ngModel)]="date" name="date">
The issue can be closed if it is ok