diff --git a/public/js/components/Fetch.js b/public/js/components/Fetch.js new file mode 100644 index 000000000..a3a11dcfe --- /dev/null +++ b/public/js/components/Fetch.js @@ -0,0 +1,46 @@ +export const CoreFetchCmpt = { + props: ["apifunction"], + data: function() { + return { + loading: false, + error: null, + data: [] + }; + }, + template: ` +
Loading ...
+{{ JSON.stringify(error, null, 4) }}
+ {{ JSON.stringify(data, null, 4) }}
+