<template>
    <figure :id="240155"></figure>
</template>
<script>
    export default {
        data() {
            return {
                id:240155,
                source: `http://localhost:3088/demo.cast`,
                ascid: `asciicast-${this.id}`
            }
        },
        mounted() {

    const plugin = document.createElement("script");
    plugin.setAttribute(
      "src",
      "./aplayer/asciinema-player.js"
    );
    plugin.async = true;
    document.head.appendChild(plugin);
        }
    }
</script>
