Skip to content

Instantly share code, notes, and snippets.

@bog1
bog1 / 0-angular-tree.js
Created October 19, 2015 17:53 — forked from furf/0-angular-tree.js
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) {