[英]ngDialog templateUrl not working when code is minifed
我在项目中使用ngDialog,并且在未缩小代码的情况下,在开发中,这段代码可以正常工作:
ngDialog.open({
template: '/static/scripts/modules/vote/Dialog.html',
controller: 'DialogCtrl',
scope: scope
});
但是,当代码缩小时,我收到此错误:
GET http://pageUrl/static/scripts/modules/vote/Dialog.html 404 (Not Found)
似乎该应用程序无法访问html文件,但是为什么在未缩小代码的情况下它可以工作?
尝试使用此ngDialog .open({template:'comment',className:'ngdialog-theme-flat ngdialog-theme-custom',scope:$ scope});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.