Running a demo of the app

To try out our app, we can simply run the ng serve command in the terminal. What we expect to see is a screen that for three seconds states it is loading, just to be replaced by the fetched data. This will demonstrate both the dispatch of the loaded state, as well as us dispatching the data to the store once it arrives. The following is the initial screen when our data is yet to arrive. We fire off the FETCHING_PRODUCTS action, which makes our loading text appear:

 The next screen is when our data arrives. Subsequently, we fire off ADD_PRODUCT_SUCCESSFULLY to ensure that the fetched data is placed in the store:

..................Content has been hidden....................

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