Skip to content

Instantly share code, notes, and snippets.

View mastef's full-sized avatar
🤗

mastef mastef

🤗
View GitHub Profile
@mastef
mastef / sortable.js
Last active December 30, 2015 09:33
jQuery UI Sortable wrapper for Angular that works with $firebaseArray methods
/*
jQuery UI Sortable plugin wrapper for $firebaseArray
@param [ui-sortable] {object} Options to pass to $.fn.sortable() merged onto ui.config
*/
angular.module('ui.sortable', [])
.value('uiSortableConfig',{})
.directive('uiSortable', [
'uiSortableConfig', '$timeout', '$log',
function(uiSortableConfig, $timeout, $log) {