File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,17 @@ Then in your code:
18
18
Vue.use(VueResourceNProgress);
19
19
20
20
21
- NOTE: You should have ` NProgress ` set globally (A example of this is adding ` nprogress ` plugin in ` <script> ` in ` <head> ` )
21
+ NOTE: You should have ` NProgress ` installed globally.
22
+ A example of this is adding ` nprogress ` plugin in ` <script> ` in ` <head> `
23
+
24
+ ### Using CommonJS
25
+
26
+ ```
27
+ npm i nprogress
28
+ import NProgress from 'nprogress'
29
+ window.NProgress = NProgress
30
+ require('nprogress/nprogress.css')
31
+ ```
22
32
23
33
## Configuration
24
34
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-resource-nprogress" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"description" : " Interceptor that ties a progressbar to all requests, that it is clear that something is loading" ,
5
5
"main" : " dist/vue-resource-nprogress.es5.js" ,
6
6
"repository" : {
You can’t perform that action at this time.
0 commit comments