Skip to content

Commit

Permalink
doc: Update NProgress installtion
Browse files Browse the repository at this point in the history
  • Loading branch information
imcvampire committed Sep 13, 2016
1 parent 16bf3d0 commit 10046eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@ Then in your code:
Vue.use(VueResourceNProgress);


NOTE: You should have `NProgress` set globally (A example of this is adding `nprogress` plugin in `<script>` in `<head>`)
NOTE: You should have `NProgress` installed globally.
A example of this is adding `nprogress` plugin in `<script>` in `<head>`

### Using CommonJS

```
npm i nprogress
import NProgress from 'nprogress'
window.NProgress = NProgress
require('nprogress/nprogress.css')
```

## Configuration

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-resource-nprogress",
"version": "1.0.1",
"version": "1.0.2",
"description": "Interceptor that ties a progressbar to all requests, that it is clear that something is loading",
"main": "dist/vue-resource-nprogress.es5.js",
"repository": {
Expand Down

0 comments on commit 10046eb

Please sign in to comment.