https://github.com/killercodemonkey/ionic-process-spinner
Angular and Ionic Framework extension. It provides the ionProcessSpinner to show a loading spinner until a process has finished. It replaces the child content with a loading spinner while processing.
https://github.com/killercodemonkey/ionic-process-spinner
Last synced: about 1 month ago
JSON representation
Angular and Ionic Framework extension. It provides the ionProcessSpinner to show a loading spinner until a process has finished. It replaces the child content with a loading spinner while processing.
- Host: GitHub
- URL: https://github.com/killercodemonkey/ionic-process-spinner
- Owner: KillerCodeMonkey
- License: mit
- Created: 2015-08-21T19:21:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-07T12:16:21.000Z (over 9 years ago)
- Last Synced: 2025-04-14T10:05:40.235Z (about 1 month ago)
- Language: HTML
- Size: 4.19 MB
- Stars: 21
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ionic-process-spinner
ionic-process-spinner is an [Angular.js](http://angularjs.org/) and [Ionic Framework](http://ionicframework.com/) extension. It provides the ionProcessSpinner directive to show a loading spinner until a process has finished. It replaces the child content with a loading spinner while processing.
Installation
============
- run `bower install ionic-process-spinner`
- or run `npm install ionic-process-spinner`
- or download zip from release page: https://github.com/KillerCodeMonkey/ionic-process-spinner/releasesDemo
====

Usage
=====
- load ionic, ionic-process-spinner scripts in your index.html
- add dependency to your app module `var myAppModule = angular.module('ionicProcessSpinnerTest', ['ionic', 'ionicProcessSpinner']);`
- use directive in your html --> ion-content-loader
- `My Content Loader`
- the content of the ion-process-spinner element is hidden until the associated processing attribute is false
- during processing is true a loading spinner is shown
- an usecase example: You do not want to block the whole view vie $ionicLoading if a request is processing after a user clicked on a button to send previously filled out inputs. IonProcessSpinner only hides the submit button and shows a loading spinner.Configuration
=============
- set spinner: `spinner="crescent"` (optional, default: platform dependent)
- set if processing: `processing="isProcessing"` (required), a scope variable to switch content with loading spinner
- css-class: `css-class="spinner-calm"` (optional), a optional css-class to style the spinner