How to use this template?
Learn which is the best way for you to use this template. There are two ways: as a starter app or as a toolbox.
Last updated
Was this helpful?
Learn which is the best way for you to use this template. There are two ways: as a starter app or as a toolbox.
Last updated
Was this helpful?
If you plan to use many of the pages and features offered by the template, then you could use the template as a base to create your app.
This means that the template is itself an Ionic app, so you don't need to create another app.
You can use the template as a base for your app and just delete the pages you don't want, and customize them to create your own and unique app.
If you only want to use some specific pages or components and you already have an existing Ionic App, then it would be better for you to just import the features and components your need into your existing app.
How to do this? Let's assume you want to add the Contact Card page (and all its styles) to you app.
Copy the entire contact-card folder from src/app/contact-card
Copy the utils folder which includes the shell files from src/app/shell
Environment
Add the following code into your environment.ts
file:
If you didn't change the theme
folder from your existing app, then delete it and copy the entire theme
folder from the template.
If you did change the theme
folder from your existing app, then just copy the rest of the files from the theme folder expect the variables.scss
file. Then open this file and add the styles we set for the template such as the font-family and the margins.
If you want to use any of the custom components then copy all the components folder from src/app/components
and import the module from the AppModule.
Note that we use dayjs library for the countdown components, so if you want to use it you need to install it by running: npm install dayjs@1.8.0 --save
Add the new route to your routing file such assrc/app/app-routing.module.ts
We designed many custom icons for this template and you are free to use them if you like. All of them are located in the src/assets/sample-icons
folder. If you want to use them you need to include them in your project.
angular.json file
Add the following code into your angular.json
file just before the "styles": ["src/theme/variables.scss", "src/global.scss"]
We are creating different projects with smaller portions of the template to help you getting started. If you want access to any of them send us an email to contact@ionicthemes.com including your github username and we will share the repo with you. Currently we have:
Firebase Starter: in progress.
We are currently showing how to use the different tools from the template into your own Ionic App.
: this is a simplified version of the template without App Shell and without the perceived performance improvements from the App Shell solution. Thus, the data resolvers are simpler.
: just contains the authentication pages and the tabs and side menu navigation.
: a project that will help you understand how to use the template app shell components in your own Ionic app.