Demo: https://threeventures.com/demo/angular/drag-and-drop/
There are really three key parts to this repository:
- /src/app/drag.service.ts
- /src/app/draggable.directive.ts
- /src/app/droppable.directive.ts
The service is a means of communication between two directives (draggable and droppable). Draggable directive is self defined, as is droppable.
See the blog post at https://threeventures.com/blog/ for more details
This project was generated with Angular CLI version 1.3.0.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.