Trying to make a drag and drop on a grid in Angular 7

Trying to make a drag and drop on a grid in Angular 7

I am trying to make a battleship game and need to drop different ships onto to a grid for right now a ship can just be like 3 squares for a grid. I know how to make a grid. I have a screenshot of the grid I have now. I just need to be able to make it so i can have a "ship" lay on top of the grid and change color of the grid to indicate it has a ship on those squares. I am using ng2-dragula to do the drag and drop because it seems a lot simpler than the angular cdk DragDrop module.

https://i.redd.it/3rdtljevdgy21.png

submitted by /u/joe_monaco
[link] [comments]

Source: Reddit