The time picker works fine in other screens but when inside the material modal, it gives console error
ERROR Error: NG01352: If ngModel is used within a form tag, either the name attribute must be set or the form
control must be defined as 'standalone' in ngModelOptions.
and the HH:MM is not displayed.
The issue occurs only when timepicker is placed inside material dialog
The Issue is occuring in project Angular V14 and angular material version 14.
The time picker works fine in other screens but when inside the material modal, it gives console error ERROR Error: NG01352: If ngModel is used within a form tag, either the name attribute must be set or the form control must be defined as 'standalone' in ngModelOptions. and the HH:MM is not displayed. The issue occurs only when timepicker is placed inside material dialog
![Uploading Clock issue.png…]()