Ionic Cordova Import Plugin Comfusion

When I was developing an ionic app, It wasn't allowing me to reference push plugin and AlertController in the ionic app (app.component). The problem was that I was making a mistake importing plugin module in the constructor: Instead of (private instanceOfModuleOrPlugin: Actual Module) as doing it the opposite hence making an error. It is supposed to be a private push: Push. push is the instance and Push is the actual Class imported in app.componete.


Was this page helpful?

Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback
Login to Continue

Community of Software Developers

Welcome, log in to continue reading. It's free and only takes a minute.




© 2020 - ErnesTech - Privacy