我正在使用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
感謝您的幫助。