app/dxa/dxa-entity/views/footer/footer-region/footer-region.component.ts
selector | div[footer-region] |
templateUrl | ./footer-region.component.html |
Properties |
|
Methods |
Inputs |
constructor(constants: ConstantsService)
|
||||||
Parameters :
|
region | |
ngOnInit |
ngOnInit()
|
Returns :
void
|
Public constants |
Type : ConstantsService
|
import { Component, OnInit, Input } from '@angular/core';
import { ConstantsService } from 'src/app/shared/constants/constants.service';
@Component({
selector: 'div[footer-region]',
templateUrl: './footer-region.component.html',
})
export class FooterRegionComponent implements OnInit {
@Input() region;
constructor(public constants: ConstantsService) { }
ngOnInit() {
}
}
<ng-container *ngIf="region?.length > 0">
<ng-container *ngFor="let row of region">
<section dxa-entity [entities]="row" [region]="'FOOTER'"></section>
</ng-container>
</ng-container>