<input type="text" value="{{ val}}"/>
<textarea ng-bind="msg"></textarea>
When performing the second operation, the scope did not save the entered text. When the popup layer was opened again, the entered text was still retained. I want to execute $scope.$apply() to refresh when I click to open, but it fails with an error. . So, how to refresh scope->view?
I don’t understand what you mean, but if you want to reset the input box in the pop-up layer when it is closed or opened, wouldn’t it be enough to just clear the corresponding object or attribute in the scope?