angularjs - TypeError: 'caller' and 'arguments' are restricted function properties -


i @ loss here error. know there questions asked on not able around issue.

i have angularjs app spring boot in backend.

index.html:

<body>    <h2 align="center">opus configurable comparison tool</h2>    <div ng-controller='storeconfigurableinputcontroller storeconfigurableinput'>         <div class="center">         <input class ="id1" type="text" ng-model="storeconfigurableinput.storeorrepid2" placeholder="store id 2 or rep id 2">         <input class ="channel" type="text" ng-model="storeconfigurableinput.channelid" placeholder="channel id">         <span><input class ="subchannel" type="text" ng-model="storeconfigurableinput.subchannelid" placeholder="subchannel id"></span>         <span><button style="margin-left: 300px;" ng-click="storeconfigurableinput.retrieveconfigurables();">retrieve configurables</button></span>     </div>     <table align="center">         <tr>             <th>config name</th>             <th>channel</th>             <th>subchannel</th>         </tr>          <tr ng-repeat="item in storeconfigurableinput.items">             <td>{{ item.configname }}</td>             <td>{{ item.channelvalue }}</td>              <td>{{ item.subchannelvalue }}</td>         </tr>     </table> </div> 

app.js:

(function () { 'use strict';  angular.module('storeconfigurableapp', []) .controller('storeconfigurableinputcontroller', storeconfigurableinputcontroller) .service('storeconfigurableservice', storeconfigurableservice) .constant('apibasepath', "http://localhost:8080");  storeconfigurableinputcontroller.$inject = ['storeconfigurableservice']; function storeconfigurableinputcontroller(storeconfigurableservice) {   var storeconfigurableinput = this;    storeconfigurableinput.storeorrepid2 = "";   storeconfigurableinput.channelid = "";   storeconfigurableinput.subchannelid = "";   storeconfigurableinput.items = "";    storeconfigurableinput.retrieveconfigurables = function () {       var promise = storeconfigurableservice.retrieveconfigurables(         storeconfigurableinput.storeorrepid2,          storeconfigurableinput.subchannelid,         storeconfigurableinput.channelid);        promise.then(function (response) {         storeconfigurableinput.items = response.data;       })       .catch(function (error) {         console.log('failed!', error);       })   }; }  storeconfigurableservice.$inject = ['$http', 'apibasepath']; function storeconfigurableservice($http, apibasepath) {   var service = this;   service.retrieveconfigurables = function(storeorrepid2, subchannelid, channelid) {       var response = $http({           method: "jsonp",           url: (apibasepath + "/" + storeorrepid2 + "/" + subchannelid + "/" + channelid)       });        console.log("the response: " + response.data);       return response;   }; 

} })();

when click on "retrieve configurables" button keep getting - typeerror: 'caller' , 'arguments' restricted function properties , cannot accessed in context. @ function.remotefunction (:2:26)]. please me resolving issue.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -