ngOnInit() {
I have array
console.log(this.array1) //this shows correct list
Second Array(this.array2) // this shows correct list
FinalArray =[];
FinalArray =this.array1.concat(this.array2)
//I also tried this one
This.finalArray = [...this.array,...this.array2]
this.ref.detectChanges();
//this array is binded to HTMl template but this is not workin
template code here
<li *ngFor="let c of completeList | search: searchText ; let i = index;">
</li>
What is missing here. ? it does not loaded into the template.