Foundational components
Now that we have explored all the project files that were automatically created for you, let's examine several foundational components that have already been referenced in the main page. These components are the glue of the application, and without them, we would have no application.
Application component
If you recall, earlier in the chapter, we discussed the app.js
file. It basically contains only the code that is responsible for setting up the properties of your application and then finally, it starts the application component. So, you probably have guessed that this is the primary component for your entire application lifecycle. Part of the features that this component provides us with is access to all the application-wide events. Frequently, in an app, you will want to know when your app is no longer the foreground application or when it finally returns to being the foreground application. To get this information, you can attach to two of the events that...