In this step, you'll update the `HomeComponent` class to store data in a new array property that you will use for filtering.
1. In `src/app/home/home.component.ts`, add new property to the class called `filteredLocationList`.
<code-exampleheader="Add the filtered results property"path="first-app-lesson-13/src/app/home/home.component.ts"region="add-filtered-location-list"></code-example>
The `filteredLocationList` hold the values that match the search criteria entered by the user.
1. The `filteredLocationList` should contain the total set of housing locations values by default when the page loads. Update the `constructor` for the `HomeComponent` to set the value.
<code-exampleheader="Set the value of filteredLocationList"path="first-app-lesson-13/src/app/home/home.component.ts"region="update-constructor"></code-example>
The `HomeComponent` already contains an input field that you will use to capture input from the user. That string text will be used to filter the results.
By binding to the `click` event on the `button` element, you are able to call the `filterResults` function. The argument to the function is the `value` property of the `filter` template variable. Specifically, the `.value` property from the `input` HTML element.
The template has been updated to bind the `filterResults` function to the `click` event. Next, your task is to implement the `filterResults` function in the `HomeComponent` class.
1. Update the `HomeComponent` class to include the implementation of the `filterResults` function.
<code-exampleheader="Add the filterResults function implementation"path="first-app-lesson-13/src/app/home/home.component.ts"region="add-filter-results-fn"></code-example>
This function uses the `String``filter` function to compare the value of the `text` parameter against the `housingLocation.city` property. You can update this function to match against any property or multiple properties for a fun exercise.