All Projects → fluster-app → ionic-swing

fluster-app / ionic-swing

Licence: other
[NOT MAINTAINED] A fork of swing.js and angular2-swing for Ionic without external hammerjs dependencies

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ionic-swing

ionic-shop
基于ionic3开发的电商APP,商品搜索,商品分类,商品详情,商品评论,购物车,订单管理,支付宝沙箱等等。。
Stars: ✭ 15 (-25%)
Mutual labels:  ionic
elearning
elearning linux/mac/db/cache/server/tools/人工智能
Stars: ✭ 72 (+260%)
Mutual labels:  ionic
bobbycar
IoT Transportation demo using Red Hat OpenShift and Middleware technologies
Stars: ✭ 33 (+65%)
Mutual labels:  ionic
ionic4-image-crop-upload
Ionic 4, Angular 7 and Cordova Crop and Upload Image
Stars: ✭ 16 (-20%)
Mutual labels:  ionic
Food-Order
Food ordering template application using Ionic, Angular and Typescript.
Stars: ✭ 20 (+0%)
Mutual labels:  ionic
ionic3-firebase-ngrx
Sample Ionic 3 application using ngrx with firebase (auth, crud and camera plugin)
Stars: ✭ 48 (+140%)
Mutual labels:  ionic
ngrx-store-ionic-storage
Simple syncing between @ngrx/store and Ionic Storage.
Stars: ✭ 66 (+230%)
Mutual labels:  ionic
RegexReplacer
A flexible tool to make complex replacements with regular expression
Stars: ✭ 38 (+90%)
Mutual labels:  swing
awesome-angular-iran
📄 A curated list of awesome Angular resources for Iranian developers
Stars: ✭ 25 (+25%)
Mutual labels:  ionic
ionic4-angular7-httpinterceptor-example
Ionic 4 and Angular 7 Tutorial: HTTP Interceptor Example
Stars: ✭ 15 (-25%)
Mutual labels:  ionic
jpass
🔐 Password manager application with strong encryption (AES-256). [Java/Swing]
Stars: ✭ 129 (+545%)
Mutual labels:  swing
OneSignal-Ionic-Sample
No description or website provided.
Stars: ✭ 85 (+325%)
Mutual labels:  ionic
sm-coal-app
这是一个使用Ionic2开发的集数据展示,交易,交流于一体的APP
Stars: ✭ 21 (+5%)
Mutual labels:  ionic
covidAPI
Coronavirus API for Current cases by country COVID-19
Stars: ✭ 600 (+2900%)
Mutual labels:  ionic
bcomp-extended
Emulator of basic computer
Stars: ✭ 21 (+5%)
Mutual labels:  swing
Dianoia-app
Mobile (Ionic 3 - Angular 4) app about non-pharmaceutical activities and information for people with dementia.
Stars: ✭ 13 (-35%)
Mutual labels:  ionic
ionic3-image-handling
In this ionic tutorial you will learn how to access the image gallery and take pictures from an ionic app. Also we will show you how to add a image cropper. This ionic tutorial includes a working ionic app example you can reuse for your needs.
Stars: ✭ 35 (+75%)
Mutual labels:  ionic
twigs
Alternate firmware for Mutable Instruments Branches synthesizer module
Stars: ✭ 21 (+5%)
Mutual labels:  swing
react-native-ionicons
Ionic icons for React Native
Stars: ✭ 43 (+115%)
Mutual labels:  ionic
cordova-plugin-exoplayer
Media player plugin for Cordova that uses Google's ExoPlayer
Stars: ✭ 48 (+140%)
Mutual labels:  ionic

[NOT MAINTAINED] This project is discontinued respectively I don't maintain it anymore.

ionic-swing

ionic-swing is a fork of the following projects intended to add the swipeable cards capatibilies to Ionic (>= 2)

Installation

To install this library, run:

$ npm install ionic-swing --save

Usage

1. Import the IonicSwingModule

In your app.module.ts, import the library like following:

import {IonicSwingModule} from 'ionic-swing';

and add it to your imports:

imports: [
    ...
    IonicSwingModule
    ...
]

2. To implement a card stack

To implement a card stack, follow the example provided by angular2-swing https://github.com/ksachdeva/angular2-swing

Or you could find also another example in my mobile application Fluster, see the following page and module https://github.com/fluster/fluster-app/tree/master/src/app/pages/browse/items/items

3. ViewChild and ViewChildren in Ionic v4

In Ionic v4, in order to access the stack and cards as ViewChild and ViewChildren, it's mandatory to use the keyword read to identify correctly the elements

Html:

<div swingStack #swingStack>
     <ion-card swingCard #swingCards>
     </ion-card>
</div>

Ts:

@ViewChild('swingStack', {read: SwingStackDirective}) swingStack: SwingStackDirective;
@ViewChildren('swingCards', {read: SwingCardDirective}) swingCards: QueryList<SwingCardDirective>;

Notes regarding hammerjs

This library need hammerjs but isn't shipped with it because some framework, like Ionic v3, already include it in their own resources. If it isn't your case, you would need to install hammerjs in your project

$ npm install hammerjs --save

and add the following line to your app.component.ts

import 'hammerjs';

Note regarding global

If you would face the error ReferenceError: global is not defined at ionic-swing.js at runtime, this could be fixed by declaring the window to the global scope. To do so add you could add the following to your polyfill.ts:

(window as any).global = window;

Development

To generate the library using ng-packagr (https://github.com/dherges/ng-packagr)

$ npm run packagr

To test locally

$ cd dist
$ npm pack
$ cd /your-project-path/
$ npm install /relative-path-to-local-ionic-swing/dist/ionic-swing-0.0.0.tgz

License

MIT © David Dal Busco

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].