Skip to content

Commit

Permalink
Register BindOncePlugin, kongponents rely on it
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianrbz committed Nov 29, 2024
1 parent da65beb commit a4169dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/_assets/entrypoints/api_spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createApp } from "vue";
import APISpec from "~/javascripts/apps/APISpec.vue";
import { BindOncePlugin } from "vue-bind-once";
import "@kong/spec-renderer-dev/dist/style.css";

if (document.getElementById("api-spec") !== null) {
const app = createApp(APISpec);
app.use(BindOncePlugin);
app.mount("#api-spec");
}

0 comments on commit a4169dd

Please sign in to comment.