skip to Main Content

Html – Directive to count nested arrays in Angular 14 when is used the component multiple times

I have this simple directive in Angular for counting nested arrays: import { AfterViewInit, Directive, Input, OnDestroy } from '@angular/core'; @Directive({ selector: '[rhsNestedArrayCounter]', exportAs: 'rhsNestedArrayCounter' }) export class NestedArrayCounterDirective implements AfterViewInit, OnDestroy { static nextIndex = -1; @Input() appCounter: number…

VIEW QUESTION
Back To Top
Search