Displaying Returned Data
Now that a method is making an AJAX call, let's build out the components to put that data on the page.
We'll cover the following...
The search feature of the photo gallery project
Open search-header.component.ts
that was generated for you earlier, along with its template search-header.component.html
. In the template, you can see that the input element has a [FormControl]
attribute. You’ll learn more about FormControl
and the related services in Building Reactive Forms.