我正在使用NW和AngularJS创建桌面应用程序的应用程序,我想要的是从服务器(html,css,js)获取文件。如何使用AngularJS从远程URL获取模板
然后我想要做的事,如下面的代码:
aux.config(function ($routeProvider) {
$routeProvider
.when('/testInformation/', {
templateUrl: 'https://serverName/test.html',
controller: 'shipmentInformationController'
}).otherwise({
redirectTo: '/'
});
});
的问题是,当我运行它是没有得到模板的HTML应用程序的话,我不知道这种想法是在AngularJs上有效,或者如果我需要改变它的逻辑来获取html的内容。
我收到错误
Error: $sce:insecurl Processing of a Resource from Untrusted Source Blocked
感谢您的帮助。