@savvior_duncan wrote:
Hello,
Adding a component dynamically using createComponent similar to:
I have a button in my component which should throw up an alert, so this should not involve the lifetime cycle:
let alert = this.alertController.create({
title: 'Profile Edit',
subTitle: 'Show Edit Profile Overlay',
buttons: ['OK']
});
alert.present();am getting an error of:
EXCEPTION: TypeError: activeNav.getActive is not a functionI've tried adding IONIC_DIRECTIVES to my dynamic component directives. I am injecting the NavController and AlertController into the constructor.
I just feel like I'm missing something simple, maybe not though.
Do i need to insert my component into the navcontroller somehow after it's been created? Is there a simple way to do that w/o pushing it on to the stack with default transitions? This component isn't really a page, so to speak, more of an overlay, similar to a modal but a bit more complex.
Thanks.
Posts: 3
Participants: 2