Skip to content

Create a directive in Angular that will allow us to freely drag any element, without using any 3rd party libraries.

Notifications You must be signed in to change notification settings

shhdharmen/angular-free-dragging

Repository files navigation

Create a directive for free dragging in Angular

In this article, we will learn how to create a directive in Angular that will allow us to freely drag any element, without using any 3rd party libraries.

Reading

This code is created for my article on indepth.dev, you can read it at: Create a directive for free dragging in Angular.

Development

git clone https://github.com/shhdharmen/angular-free-dragging.git
cd angular-free-dragging
npm i
npm start