Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

maliMirkec/angular-repeater

Repository files navigation

Angular Repeater

Directive that could handle recursion

Important note

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.

Usage

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>

Guide

https://silvestar.codes/articles/recursively-includible-angular-directive