1. About ng-reflect attribute (0511)

$(‘element’).value = $(‘element’).value = $(‘element’).value = $(‘element’). But because the NgModule binds this value bidirectionally, it gets it through ng-reflect-model.

Result: However, in the combined environment, there is no such value, and the value cannot be obtained, resulting in an error.

Reason: There is a lot of data attached to the Ng-reflect property in the DOM at development time, which is provided for debug in the development environment. But in test and production environments, there is no such thing. Control whether need ng – flect attribute way is, in the/SRC/environments/environment. Ts set in the production: true

Solution: Bind to data-id

 <p-dropdown [options] ="indexList" [filter] ="true" [resetFilterOnHide] ="true" (onChange) ="onIndexSelected($event, item);" placeholder="Please select" required name = "quotaName" [(ngModel)] ="item.quotaId" data-id="label-{{item.quotaId}}">
</p-dropdown>
Copy the code

Data-id is available with $(‘element’).id

Form form reset

TBD