typescript - 像毕加索这样的 ionic 2 typescript 中的图像缓存

标签 typescript angular cross-platform ionic2 hybrid-mobile-app

http://market.ionic.io/plugins/ionic-img-cache 此链接适用于 ionic 1,我无法在带有 typescript 的 ionic 2 中找到任何图像缓存解决方案。 有人吗??

我尝试了这个链接,但我无法理解其中的代码 https://github.com/BenBBear/ionic-cache-src

最佳答案

您可以使用 imgcache.js

npm install imgcache.js --save

然后创建自己的组件或指令类来缓存图像,如described here有例子。

关于typescript - 像毕加索这样的 ionic 2 typescript 中的图像缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38657381/

相关文章:

javascript - 使用插件在 Netbeans 上扩展 TypeScript 中的内置对象

javascript - 元组类型的问题

html - Angular2 NgStyle 中的两个函数

android - 如何向 VS2015 Android 调试器提供命令行参数?

android - cordova 7.x 添加自定义平台——我们得到了哪些好处?

angular - NGXS - 从父状态访问子状态

angular - 将函数转换为可观察的

javascript - 找不到模块 : Error: Can't resolve 'crypto'

angular - routerlink 不重新加载组件

ios - native 与跨平台 - 消息应用程序