Skip to content

Instantly share code, notes, and snippets.

View janez89's full-sized avatar

Janez janez89

  • Budapest
  • 12:45 (UTC +01:00)
View GitHub Profile
@furf
furf / 0-angular-tree.js
Last active July 21, 2016 06:36
A minimal recursive tree directive for Angular.js. Demo: http://jsfiddle.net/furf/EJGHX/
var app = angular.module('app', []);
app.directive('yaTree', function () {
return {
restrict: 'A',
transclude: 'element',
priority: 1000,
terminal: true,
compile: function (tElement, tAttrs, transclude) {