https://github.com/optixsolutions/vue-loader
https://github.com/optixsolutions/vue-loader
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/optixsolutions/vue-loader
- Owner: optixsolutions
- License: mit
- Created: 2018-08-14T08:41:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-07T16:12:43.000Z (over 7 years ago)
- Last Synced: 2026-04-08T20:53:44.683Z (4 months ago)
- Language: JavaScript
- Size: 59.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Vue Loader
A plugin to handle the loading state within your Vue applications
## Installation
```bash
npm install @optix/vue-loader --save
yarn add @optix/vue-loader
```
```javascript
import Vue from 'vue';
import VueLoader from '@optix/vue-loader';
Vue.use(VueLoader);
```
## Usage
Accessing the loader object:
```javascript
// Globally
Vue.loader.start('example');
// On an instance
this.$loader.start('example');
```
### Methods
* start(item)
* stop(item)
* isLoading() // boolean
* clear()
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.