I am a newbie in the subject of APPs.
I have downloaded an ionic template [ https://market.ionicframework.com/starters/ionic-tabs-starter-templates-3]
After following the ionic installation instructions on the official website, I would like to insert the template that I downloaded into the app that I just created with ionic start
.
As I have seen on the internet, it tells me that I have to insert it in the www folder but it does not create that folder for me, it creates the src folder for me
Could someone tell me the steps to follow to insert this template in the APP or if this template already has everything necessary to work, how to configure said template so that it starts with the ionic serve
?
This is done taking into account that work was done on the template tabs and the sidemenu was added. The first thing to do is to create the pages to which the sidemenu will access, therefore 2 extra pages are added
within your src/pages the 2 pages are generated with their css, ts, etc and in their respective folders.
later we will modify the src/app/app.html with the following:
With this we can see that there are some functions to enter their respective pages. For this we are going to add them in the src/app/app.component.ts file
We can notice that ViewChild from @angular-core and Nav from ionic-angular have been added.
Now we also need to register the pages in app.module.ts
and we also add them in @NgModule in declarations:
and in entryComponents:
With all this it should work correctly.
All this was taken from the following tutorial in English and made the modifications that I needed.
Within each visible page we must add the following code, for example for test1.html it would be the following:
Where menuToggle is in charge of displaying the sidemenu, although it works by sliding from left to right within the app.