Verifying the client-side routing functionality

To ensure that the client-side routing is functioning properly, you can exercise the following procedure:

  1. Access the Products page in your web browser and open up the web browser's inspector.
  2. Click on the network tab to watch network traffic, and make sure to filter on XHR calls. Now, click on a product item to get to the product's detail page.
  3. Return to the Products page by clicking the Products link on the navigation menu.

Repeat this process several times, and you should be able to see all the XHR calls being made in the background. Figure 5.7 includes a screenshot of this procedure to verify that the client-side routing is functioning properly:

Figure 5.7: The XHR calls in the web console confirms that the client-side routing is functioning properly
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.187.108