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

Modal cssClass

$
0
0

@mtnoronha7 wrote:

Hi,

I created an component (HeaderComponent) that was ModalController on a paged I called SelectorPage.
Alright, but creating the Modal like this:

  async presentModal() {
    const modal = await this.modalCtrl.create({
      component: SelectorPage,
      cssClass: 'selector-modal'
    });
    return await modal.present();
  }

I’ve notice the CSS has to be on app.scss, not on myheader.component.scss not even on selector.page.scss.

Whats the reason for this?
Thank you!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70909

Trending Articles



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