Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70770

How do we use Modal in two different pages?

$
0
0

@ChaminT wrote:

When we use modal in ionic we have to declare the page/component in the nearest Module.ts

 async onCreateLead() {
    const modal = await this.mdlCntrl.create({
      component: LeadPage
    });
    return await modal.present();
  }

i have to use above lead component in two differece Pages(Modules) . when i try to use “LeadPage” in two diffecent modules error is raised :Type LeadPage is part of the declarations of 2 modules: ,
How do i solve this problem?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70770

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>