Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
var app = angular.module('dragDrop', []); | |
app.directive('draggable', function() { | |
return function(scope, element) { | |
// this gives us the native JS object | |
var el = element[0]; | |
el.draggable = true; | |
el.addEventListener( |
/** | |
* A generic confirmation for risky actions. | |
* Usage: Add attributes: ng-really-message="Really?" ng-really-click="takeAction()" function | |
*/ | |
angular.module('app').directive('ngReallyClick', [function() { | |
return { | |
restrict: 'A', | |
link: function(scope, element, attrs) { | |
element.bind('click', function() { | |
var message = attrs.ngReallyMessage; |