Ionic tutorials for beginners

how to link a button to a page in ionic 3

 

1. Generate new page in ionic

Example: ionic g page about

2. create a button

HTML

 

3. app.module.ts

add your page to app module ( plz focus on Aboutpage)

add your page to app module

 

4.  TS file ( if you include your new button in home.html then do this changes in home.ts)

First, you have to import your page.

 

 

Overview in Video

Click Her

 

 Result

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Total: 1    Average: 5/5]

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *