File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,16 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
28
28
<script >
29
29
30
30
const options = {
31
-
32
31
moduleCache: {
33
32
vue: Vue
34
33
},
35
-
36
34
async getFile (url ) {
37
35
38
36
const res = await fetch (url);
39
37
if ( ! res .ok )
40
- throw Object .assign (new Error (url + ' ' + res . statusText ), { res });
38
+ throw Object .assign (new Error (res . statusText + ' ' + url ), { res });
41
39
return await res .text ();
42
40
},
43
-
44
41
addStyle (textContent ) {
45
42
46
43
const style = Object .assign (document .createElement (' style' ), { textContent });
@@ -67,7 +64,7 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
67
64
68
65
### More Examples
69
66
70
- see [ examples] ( docs/examples.md )
67
+ see [ all examples] ( docs/examples.md )
71
68
72
69
73
70
## Try It Online
@@ -77,7 +74,7 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
77
74
78
75
## Public API documentation
79
76
80
- ** [ loadModule] ( docs/api/README.md#loadmodule ) ** (` path ` : string, ` options ` : [ Options] ( docs/api/interfaces/options.md ) ): Promise\< Module>
77
+ ** [ loadModule] ( docs/api/README.md#loadmodule ) ** (` path ` : string, ` options ` : [ Options] ( docs/api/interfaces/options.md ) ): ` Promise\<VueComponent> `
81
78
82
79
83
80
## dist/
You can’t perform that action at this time.
0 commit comments