<input type="text" value="{{ val}}"/>
<textarea ng-bind="msg"></textarea>
在执行第二种操作时, scope没有保存输入的文本,再次打开弹出层, 还保留着输入的文本。 想在点击打开的时候,执行$scope.$apply() 刷新, 报错失败。。 那么,怎么来执行scope->view的刷新 ?
曾经蜡笔没有小新2017-05-15 16:54:55
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?