如何显示本地:离子框架+科尔多瓦//形象? [英] How to display a local:// image in ionic framework + cordova?
问题描述
有谁知道如何显示本地图像,科尔多瓦容器内包装,使用离子( http://ionicframework.com /文档/ )?
Does anyone know how to display local images, packaged inside a Cordova container, using Ionic (http://ionicframework.com/docs/)?
当应用程序在设备上运行,目前我得到这个错误:
I am currently getting this error when the app runs on a device:
的获取不安全:地方:///img/thumbs/myImage.jpg未处理的协议的
我科尔多瓦的应用程序是专为黑莓10安培;使用的Android框架离子。这个应用程序显示打包科尔多瓦应用程序内itselfusing以下模板图像:
My Cordova app is built for BlackBerry 10 & Android using ionic framework. The app displays an image that is packaged inside the Cordova app itselfusing the following template:
<img ng-src="img/thumbs/{{img.path}}" ng-click="fooBar(img)"/>
为什么发生这个错误?
Why is this error occurring?
推荐答案
我发现这是关于黑莓10支撑离子框架的电流限制。我在这里记录了一个错误:github.com/driftyco/ionic/issues/1066
I've discovered this is a current limitation of the ionic framework regarding BlackBerry 10 support. I've logged a bug here: github.com/driftyco/ionic/issues/1066
要解决这个问题,因为我已经手动编辑离子库包括本地协议的支持。
To fix this, I've since manually edited the ionic library to include support for the local protocol.
这篇关于如何显示本地:离子框架+科尔多瓦//形象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!