<template>
    <div>
        <p>PCID: <span v-text="this.data.pcid"></span></p>
        <p>Manufacturer: <span v-text="this.data.pcmanu"></span></p>
    </div>
</template>
<script>
export default {
    props: ['asset'],
    data() {
        return {
            data: JSON.parse(this.asset)
        }
    },
    mounted() {
        Echo.channel('assets')
            .listen('AssetUpdated', (e) => {
                this.data = JSON.parse(e.data);
            });
    }
}
</script>