How To Make A Modal In Ionic 4 2020 | Easy Steps

Here are the simple steps to  create a Modal

 

Step 1

Generate component by this cmd

 

In ionic 3 we generate the page and used that as a modal but in ionic 4 we should create a component by above command and use it as a modal.

 

Step 2

Changes in homepage.ts file ( the page where the popup will show)

Step 3

#############  popup page ( popup page that will show on homepage as a modal) #############

Step 4

############# app. module.ts#############

 

 

[Total: 1    Average: 5/5]
admin
Leave a Reply

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages