像Turn Js一样的Ionic 2 Flipbook [英] Ionic 2 Flipbook like Turn Js

查看:156
本文介绍了像Turn Js一样的Ionic 2 Flipbook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个用于查看Ionic 2交易的应用程序. 我想开发一个动画书,它必须像下面的链接一样将图像显示为动画书

I am building an app for viewing deals with Ionic 2. I want to develop a flipbook which has to display image as a flipbook like in the following link

turnjs

我尝试在Ionic 2应用程序中实现此插件,但未成功. 我的问题如下

I tried to implement this plugin in Ionic 2 app but was not successful. My questions are the following

  • 有没有可用的插件?
  • 如何将js插件集成到Ionic2应用程序?(任何指导)

谢谢.

推荐答案

https://www .npmjs.com/package/angular-turnjs

在那里查看该链接以获取基于角度的turn.js实现.如果您想将其实现到应用程序中,请按需构建它,但是要像这样导入turn js.

check out that link there for an angular based turn.js implementation. If you want to implement it into your application, build it out as you would but import turn js like this.

import * as turnJs from '../path/to/turnjs'

这将创建一个turnJS对象,您可以使用该对象访问库,从那里您应该可以使用turn.js中想要的任何内容

this will create a turnJS object that you can use to access the library, from there you should be able to use whatever you want from turn.js

这篇关于像Turn Js一样的Ionic 2 Flipbook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆