├── .gitignore
├── Gruntfile.js
├── LICENSE.txt
├── README.md
├── bower.json
├── demo.html
├── package.json
└── src
├── ionic-process-spinner.js
└── ionic-process-spinner.min.js
/.gitignore:
--------------------------------------------------------------------------------
1 | *.swp
2 | bower_components
3 | .DS_Store
4 | node_modules
5 |
--------------------------------------------------------------------------------
/Gruntfile.js:
--------------------------------------------------------------------------------
1 | module.exports = function (grunt) {
2 |
3 | // Project configuration.
4 | grunt.initConfig({
5 | pkg: grunt.file.readJSON('package.json'),
6 | uglify: {
7 | my_target: {
8 | files: {
9 | 'src/ionic-process-spinner.min.js': 'src/ionic-process-spinner.js'
10 | }
11 | }
12 | }
13 | });
14 |
15 | grunt.loadNpmTasks('grunt-contrib-uglify');
16 |
17 | grunt.registerTask('default', ['uglify']);
18 | };
19 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Bengt Weiße and other contributors
4 |
5 | Permission is hereby granted, free of charge, to any person
6 | obtaining a copy of this software and associated documentation
7 | files (the "Software"), to deal in the Software without
8 | restriction, including without limitation the rights to use,
9 | copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the
11 | Software is furnished to do so, subject to the following
12 | conditions:
13 |
14 | The above copyright notice and this permission notice shall be
15 | included in all copies or substantial portions of the Software.
16 |
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24 | OTHER DEALINGS IN THE SOFTWARE.
25 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ionic-process-spinner
2 |
3 | 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.
4 |
5 | Installation
6 | ============
7 | - run `bower install ionic-process-spinner`
8 | - or run `npm install ionic-process-spinner`
9 | - or download zip from release page: https://github.com/KillerCodeMonkey/ionic-process-spinner/releases
10 |
11 | Demo
12 | ====
13 | 
14 | 
15 |
16 | Usage
17 | =====
18 | - load ionic, ionic-process-spinner scripts in your index.html
19 | - add dependency to your app module `var myAppModule = angular.module('ionicProcessSpinnerTest', ['ionic', 'ionicProcessSpinner']);`
20 | - use directive in your html --> ion-content-loader
21 | - `My Content Loader`
22 | - the content of the ion-process-spinner element is hidden until the associated processing attribute is false
23 | - during processing is true a loading spinner is shown
24 | - 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.
25 |
26 | Configuration
27 | =============
28 | - set spinner: `spinner="crescent"` (optional, default: platform dependent)
29 | - set if processing: `processing="isProcessing"` (required), a scope variable to switch content with loading spinner
30 | - css-class: `css-class="spinner-calm"` (optional), a optional css-class to style the spinner
31 |
--------------------------------------------------------------------------------
/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ionic-process-spinner",
3 | "version": "0.0.1",
4 | "authors": [
5 | "Bengt Weiße "
6 | ],
7 | "description": "Angular and Ionic Framework 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.",
8 | "main": ["src/ionic-process-spinner.min.js"],
9 | "ignore": [
10 | "bower_components",
11 | "node_modules",
12 | "spec",
13 | "demo.html",
14 | "package.json",
15 | "Gruntfile.js"
16 | ],
17 | "dependencies": {
18 | "ionic": "~1.1.0"
19 | },
20 | "keywords": [
21 | "loading",
22 | "process",
23 | "ionic framework",
24 | "ionic-process-spinner",
25 | "ionic",
26 | "angular",
27 | "directive"
28 | ],
29 | "license": "MIT"
30 | }
31 |
--------------------------------------------------------------------------------
/demo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | ionicProcessSpinner Test
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
28 |
29 |
30 |
31 |