pickList is empty until first click on a pickList-Button
Posted: 25 Nov 2020, 13:19
I have a p-pickList that only works after having clicked once at one of the pickList-Buttons. Before I do that, the pickList is completely empty.
I am using primeng 10.0.3 with angular/cli 10.1.7
My pickList html code looks like this:
<p-pickList [source]="pickableTodoItemTemplates" [target]="pickedTodoItemTemplates"
sourceHeader="Nicht ausgewählt" targetHeader="Ausgewählt" [showSourceControls]="false" [showTargetControls]="false"
(onMoveToTarget)="onMoveToTarget($event)" (onMoveToSource)="onMoveToSource($event)">
<ng-template let-tit pTemplate="item">
<div>
<div>
{{tit.displayName}}
</div>
</div>
</ng-template>
</p-pickList>
The source and target arrays are initialized in the success-callback method of a REST-Service call that is invoked from the ngOnInit() method of the component.
Any ideas what could be missing?
I am using primeng 10.0.3 with angular/cli 10.1.7
My pickList html code looks like this:
<p-pickList [source]="pickableTodoItemTemplates" [target]="pickedTodoItemTemplates"
sourceHeader="Nicht ausgewählt" targetHeader="Ausgewählt" [showSourceControls]="false" [showTargetControls]="false"
(onMoveToTarget)="onMoveToTarget($event)" (onMoveToSource)="onMoveToSource($event)">
<ng-template let-tit pTemplate="item">
<div>
<div>
{{tit.displayName}}
</div>
</div>
</ng-template>
</p-pickList>
The source and target arrays are initialized in the success-callback method of a REST-Service call that is invoked from the ngOnInit() method of the component.
Any ideas what could be missing?