src/app/components/page-renderer/page-renderer.component.ts
Displays elements on the page
selector | ccf-page-renderer |
styleUrls | ./page-renderer.component.scss |
templateUrl | ./page-renderer.component.html |
Inputs |
defs | |
Type : PageDef[]
|
|
Default value : []
|
|
Elements data to be displayed on the page |
import { Component, Input } from '@angular/core';
import { PageDef } from '../page-element/page-def';
/** Displays elements on the page */
@Component({
selector: 'ccf-page-renderer',
templateUrl: './page-renderer.component.html',
styleUrls: ['./page-renderer.component.scss'],
})
export class PageRendererComponent {
/** Elements data to be displayed on the page */
@Input() defs: PageDef[] = [];
}
<page-element *ngFor="let def of defs" [def]="def"></page-element>
./page-renderer.component.scss