在Angular JS中更改输入元素后无法保存编辑

时间:2017-10-07 20:54:35

标签: angularjs

我正在更改<input>内容。我能够在<pre></pre>的帮助下看到我所做的更改,但是当我点击Save Edit按钮时,更改没有反映在用户界面上。谁能告诉我哪里出错了?

这是保存编辑功能(Source code

function saveEdit() {
  vm.sidenavOpen = false;
  $scope.$emit('editSaved', 'Edit Saved!');
}

我在浏览器上调试时遇到了以下异常。

TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
    at Function.remoteFunction (<anonymous>:2:14)
    at Object.saveEdit (http://localhost:8080/components/classifieds/edit/classifieds.edit.ctr.js:36:17)
    at fn (eval at compile (http://localhost:8080/node_modules/angular/angular.js:15551:15), <anonymous>:4:164)
    at callback (http://localhost:8080/node_modules/angular/angular.js:27341:17)
    at Scope.$eval (http://localhost:8080/node_modules/angular/angular.js:18423:28)
    at Scope.$apply (http://localhost:8080/node_modules/angular/angular.js:18523:25)
    at HTMLButtonElement.<anonymous> (http://localhost:8080/node_modules/angular/angular.js:27346:23)
    at defaultHandlerWrapper (http://localhost:8080/node_modules/angular/angular.js:3771:11)
    at HTMLButtonElement.eventHandler (http://localhost:8080/node_modules/angular/angular.js:3759:9)

0 个答案:

没有答案