IONIC Section 7 - 7.3 Ionic page caching and its additional lifecycles
Click here for more videos available on our youtube channel !Hello everyone, in the previous video we talked about cache. But what is it ? For simplicity, the role of cache memory is to store the information most frequently used by software and applications from your computer. The way to see how the cache works, is to embed "console.log" in each of the features as we have integrated in our code in the "recipes.page.ts" file, you can see that we have integrated for each function "ngOnInit", "ionViewDidEnter", "ionViewWillEnter", "ionWillLeave", “ionViewDidLeave” and “ngOnDestroy”. This allows to observe the flipping of pages regarding our page stack as explained in the previous video. Know that, in the meantime, I have disconnected the simulation, to do so, you must do "control C" on the terminal that builds it. To do this we can go to the application, more precisely in our console, in order to observe what happens when we surf a little on our application. For example, on our homepage we find “ngOnInit” and “ionviewDidEnter” and when you go to a recipe “ionViewDidLeave” for example. So here's how to check and check the life cycle of our application. This allows us to see more clearly and in more detail. Again if you have any difficulties, I strongly advise you to follow the course dedicated to the JavaScript technology of my colleague which will allow you to acquire and to fully understand the methodology of this techno. What we are going to do now is plan the current project in order to create our application pages. Let's start with our plan in the next video.