There seems to be an issue with a specific part of my application where the inputs are not binding correctly.
The component in question is:
@Component({
selector : 'default-actions',
templateUrl : './default.actions.template.html',
styleUrls: [ './default.actions.style.scss' ],
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush
})
export class DefaultActionsComponent
{
protected entityId;
protected uuid = UUID.UUID();
protected extraForms;
@Input() protected data;
@Input() protected structure;
@Input() protected targetId;
@Input() protected table;
@Input() protected row;
@Input() protected modal: ModalDirective;
@Input() protected entity;
@Input() protected entityObject: Entity;
@Input() protected parentWrapper;
@Input() protected foo;
constructor(
protected translate: TranslateService,
protected activatedRoute: ActivatedRoute,
protected actionService: DefaultActionsService,
protected router: Router,
protected entityService: EntityService,
protected http: HttpAuthenticationService
) {}
public ngOnInit() {
console.log(this.foo);
}
The component is being used here:
<default-actions
[table]="table['defaultListingTableComponent']"
[row]="row"
[foo]="'bar'"
[modal]="modal"
[structure]="availableColumns"
[entityObject]="entityObject"
[targetId]="selectedRows()">
</default-actions>
I added the foo
input for debugging purposes. However, when I check the console using console.log(this.foo);
, it returns undefined
. The same issue persists with other inputs as well.
Although all other components in my application are functioning properly, there seems to be some trouble with this particular component that I'm having difficulty identifying.