Modules
Learn about the default structure of an Ionic component file, as well as Ionic modules.
We'll cover the following
Structure of a component file
Let’s open the src/app/home/home.page.ts
component file contained within the recently generated blank-app
project that we created in the previous chapter), let’s open the src/app/home/home.page.ts
component file contained within there.
This is the automatically generated TypeScript file for our app’s home page. It consists of a straightforward code structure that the page logic can be entered into and built on top of.
Get hands-on with 1400+ tech skills courses.