I am using JavaScript API to create html elements from JSON Schema. When I passed the json schema, it's returns widget html element object.
Widget is HTML DOM object which contains tagName, id. So for two data binding I have include [(ngModel)] into dom object, for this I am using-
widget.setAttribute("[(ngModel)]", "model");
But It's giving me error-
[(ngModel)]' is not a valid attribute name
Inside @NgModule, I have already included BrowserModule and FormsModule