【发布时间】:2015-12-03 15:08:10
【问题描述】:
【问题讨论】:
标签: c# cordova ionic-framework ionic windows-10-universal
【问题讨论】:
标签: c# cordova ionic-framework ionic windows-10-universal
找到答案here
部分页面无法加载? 当你使用 AngularJS 路由模块时(Ionic starter 模板经常使用这个模块),你可能需要包含一个对 aHrefSanitizationWhitelist 的调用。
如果您看到此处显示的对话框,您很可能遇到了这种情况 问题。
通常,您将代码修复包含在 app.js 或您所在的任何位置 调用你的模块配置代码:
.config(function ($stateProvider, $urlRouterProvider, $compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|ghttps?|ms-appx|ms-appx-web|x-wmapp0):/);
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|ms-appx|ms-appx-web|x-wmapp0):|data:image\//);
【讨论】: