Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49229

ModalController, Modal and @ionic/angular docs inconsistency

$
0
0

I’m trying to access ModalController API definition for the new @ionic/angular package and unable to find matching docs on the API side. The new component is described here, examples are using new import:

import { ModalController } from '@ionic/angular';

But when you navigate to API to see the details, in my case I want to know what is the return type for the ModalController.create method, you will see old imports:

import { ModalController, NavParams } from 'ionic-angular';

And what is the most confusing, there is no create method in docs, so I’m not sure how I can see the return type. Previously it was Modal but it’s no longer exported in the @ionic/angular package. And I have multiple other examples of type I’m trying to find which are no longer exported (build error) and not described in the docs.

How can I find in docs what is the return type of the ModalController.create method?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 49229

Trending Articles