angular 2: concat arrays in a pipe without loosing databinding
问题 I have a simple pipe: export class MergePipe implements PipeTransform { transform(first: any[], second: any[], order: Boolean): any { return order ? first.concat(second):second.concat(first); } Which I'm using on a simple button: <button *ngFor="let item of items | sort:suffix | filter:filterargs | merge:newItems:false"></button> . And then push some values into the newItems with newItems.push(values) but nothing happens. If I remove the pipe from *ngFor, I receive the expected changes. I