packages/ui/src/lib/io/dynamic-rack/dynamic-rack.component.ts
This directive can be used to display a field. It is used inside ec-form as well as ec-list.
templateUrl | ./dynamic-rack.component.html |
constructor(componentFactoryResolver: ComponentFactoryResolver)
|
||||||
The constructor provides the instance of ViewContainerRef which is later used to create embedded views
Parameters :
|
import { Component, ComponentFactoryResolver } from '@angular/core';
// import { CustomFieldComponent } from './custom-field.component';
/** This directive can be used to display a field. It is used inside ec-form as well as ec-list. */
@Component({
// selector: 'ec-dynamic-rack',
templateUrl: './dynamic-rack.component.html',
})
export class DynamicRackComponent {
/** The constructor provides the instance of ViewContainerRef which is later used to create embedded views*/
constructor(private componentFactoryResolver: ComponentFactoryResolver) {}
}
<div>
<ul>
<!--<li *ngFor="let slot of slots">-->
<!--</li>-->
</ul>
</div>