Directive that could handle recursion
This is a directive which outputs inputs with labels, based on model provided.
I'm considering to extend this directive for different outputs, but that will be decided if any request is made.
For example, this could be used to output a file tree.
First include Angular Repeater in your project:
(function (DemoApp) {
'use strict';
DemoApp = angular.module('DemoApp', ['Repeater']);
DemoApp.config(function () {});
}(this));
Than call recursive-repeater directive and provide it with an Angular model and label:
<recursive-repeater json-data="jsonData" label="MyLabel"></recursive-repeater>
https://silvestar.codes/articles/recursively-includible-angular-directive