i'm running angular 1.5.7.
simple example on jsfiddle works, in real application error:
angular.js:13708 typeerror:
failed execute 'createobjecturl' on 'url': no function found matched signature provided.
at typeerror (native) @ downloadcsv (http://localhost/js/dashboard.js:286:35) @ fn (eval @ compile (http://localhost/node_modules/angular/angular.js:14605:15), anonymous:4:267) @ expensivecheckfn (http://localhost/node_modules/angular/angular.js:15694:18) @ callback (http://localhost/node_modules/angular/angular.js:25622:17) @ scope.$eval (http://localhost/node_modules/angular/angular.js:17444:28) @ scope.$apply (http://localhost/node_modules/angular/angular.js:17544:25)
as can see, error happens inside eval.
what in real application calling function on ng-click:
this.downloadcsv = function () { //... console.log(url.createobjecturl); var url = url.createobjecturl(chart.csvblob); };
an interesting thing code produces valid console.log
function () { [native code] }
but fails run method.
strange, happened because chart.cvsblob
undefined. confused error messages told me.
Comments
Post a Comment