0.1.1 • Published 7 years ago
@monocode/draggable v0.1.1
#draggable Makes any HTML element draggable. ###Usage Install package
$ npm install @monocode/daggableAdd draggable module as a dependency
import angular from 'angular';
import {DraggableModule} from '@monocode/draggable';
angular.module('my-app', [DraggableModule]);You can use draggable directive on any HTML element
<div id="comment" draggable></div>
<img src="..." draggable />
<input type="text" draggable />Important! Adding
draggabledirective to an HTML element will automatically change element'spositiontofixed.When an element is dragged, its
clickevents will not be triggered.