File

projects/ng-dynamic-forms/core/src/lib/directive/dynamic-template.directive.ts

Metadata

Selector ng-template[modelId],ng-template[modelType]

Index

Properties
Inputs

Constructor

constructor(templateRef: TemplateRef)
Parameters :
Name Type Optional
templateRef TemplateRef<any> No

Inputs

align
Type : string
Default value : DYNAMIC_TEMPLATE_DIRECTIVE_ALIGNMENT.End
as
Type : string | null
Default value : null
index
Type : number | undefined
modelId
Type : string
modelType
Type : string

Properties

Public templateRef
Type : TemplateRef<any>
import { Directive, Input, TemplateRef } from "@angular/core";

export enum DYNAMIC_TEMPLATE_DIRECTIVE_ALIGNMENT {
    Start = "START",
    End = "END"
}

@Directive({
    selector: "ng-template[modelId],ng-template[modelType]"
})
export class DynamicTemplateDirective {

    @Input() align: string = DYNAMIC_TEMPLATE_DIRECTIVE_ALIGNMENT.End;
    @Input() as: string | null = null;
    @Input() index: number | undefined;
    @Input() modelId: string;
    @Input() modelType: string;

    constructor(public templateRef: TemplateRef<any>) {
    }
}

result-matching ""

    No results matching ""