https://github.com/maximnara/jiwer
AngularJs (+ ionic) mobile friendly image viewer
https://github.com/maximnara/jiwer
Last synced: 7 months ago
JSON representation
AngularJs (+ ionic) mobile friendly image viewer
- Host: GitHub
- URL: https://github.com/maximnara/jiwer
- Owner: maximnara
- License: mit
- Created: 2015-09-14T12:44:53.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-15T05:35:25.000Z (almost 10 years ago)
- Last Synced: 2023-08-13T19:08:57.533Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 578 KB
- Stars: 17
- Watchers: 3
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AngularJs / Ionic Image Viewer
===========Gallery, carousel, image viewer module for Angular JS, can be used with Ionic. Touch devices supported.
[**Simple Demo**](http://maximnara.github.io/jiwer/example-simple.html) and [**Ionic Demo**](http://maximnara.github.io/jiwer/example-ionic.html)
---
### Usage:- Add `angular` and `ngImageViewer` to your code:
```html
```
- Add a dependency to the `ngImageViewer` module in your application.
```js
angular.module('app', ['ngImageViewer']);
```- Add attribute directives to your html:
```html
```
** Parameters **
* `imgs` array of urls (required)
* `current` index of image thal will be shown (optional, defaults to 0)**Ionic usage:**
You need just create modal and insert:
```html
```## Pull requests
We welcome pull requests but please check that all the examples still work if you modified the source base. There have been serveral PRs recently that broke core functionality. If you are feeling really keen you could include some protractor test cases in your PR.