@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
23 lines (22 loc) • 1.08 kB
TypeScript
import { type TuiContext } from '@taiga-ui/cdk/types';
import * as i0 from "@angular/core";
export declare class TuiRepeatTimesContext implements TuiContext<number> {
readonly $implicit: number;
constructor($implicit: number);
}
/**
* Directive similar to ngFor but using a number of repetitions rather than an array
*
* {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.
* {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores
* {@link TuiRepeatTimesContext.$implicit index} of a template instance.
*/
export declare class TuiRepeatTimes {
private readonly viewContainer;
private readonly templateRef;
set tuiRepeatTimesOf(count: number);
private addContainers;
private removeContainers;
static ɵfac: i0.ɵɵFactoryDeclaration<TuiRepeatTimes, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiRepeatTimes, "[tuiRepeatTimes][tuiRepeatTimesOf]", never, { "tuiRepeatTimesOf": { "alias": "tuiRepeatTimesOf"; "required": false; }; }, {}, never, never, true, never>;
}