Skip to content
On this page

Url Loader Plugin

💡 Load config from remote url.

vue
<script setup lang="ts">

import { useTopCom, templateCompiler, urlLoaderPlugin } from "vue-top-com";

const { register } = useTopCom({
  compiler: templateCompiler,
  plugins: [
    urlLoaderPlugin(),
  ],
});
const MyCom = register({
  name: "MyCom", 
  url: "/api/remote-com.json"
});
</script>

<MyCom />

Results


Released under the MIT License.