Angular: Property not found tap but is in normal subscription

Because you have not mentioned the type of value object. Just mention it as an any object. Something like this

tap((value:any) => {

console.log(value.searchString); // Underlined Typescript error

  let searchTerm = value.searchString; // Underlined Typescript error

  this.filteredUserNames = this.users.filter((userName) =>
      .indexOf(searchTerm.toLowerCase()) !== -1)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top