【发布时间】:2013-05-12 17:53:42
【问题描述】:
我正在使用 $dialog 引导指令在 $dialog 框中实现找到的 jquery 文件上传插件的 AngularJS 代码:http://blueimp.github.io/jQuery-File-Upload/:http://angular-ui.github.io/bootstrap/#/dialog
一切都按预期工作,模态出现正常,文件上传正常等...问题是当模态关闭时,会出现 3 个错误,然后无论何时打开或关闭模态,它们都会继续在控制台上显示。它们是:
cannot call methods on fileupload prior to initialization; attempted to call method 'processing'
cannot call methods on fileupload prior to initialization; attempted to call method 'active'
cannot call methods on fileupload prior to initialization; attempted to call method 'progress'
我可以看到错误可能发生在哪里,我只是不确定为什么或如何解决这些问题。谢谢!
这是一个包含相关问题的 plnkr。 http://plnkr.co/edit/vQUpJGBPGNNKsU91qIG3
【问题讨论】:
标签: javascript angularjs angular-ui