Skip to content

Instantly share code, notes, and snippets.

View Revyn112's full-sized avatar
🏠
Working from home

Denis Freund Revyn112

🏠
Working from home
View GitHub Profile
@Revyn112
Revyn112 / index.vue
Created December 13, 2021 08:14 — forked from yannbcf/index.vue
custom alt:V drag & drop implementation
<script setup lang="ts">
import { InventoryManager } from './inventoryManager';
import { onMounted, onUnmounted } from 'vue';
import { Container } from 'typedi';
onMounted(() => {
const inventoryManager = Container.get(InventoryManager);
const container = document.querySelector('.container');
if (!inventoryManager || !container) return;