Hi
I have updated my project to ionic 5. Now my code is broken because Events from @ionic-angular are missing.
export ‘Events’ was not found in '@ionic/angular
Please suggest the fix for this
Hi
I have updated my project to ionic 5. Now my code is broken because Events from @ionic-angular are missing.
export ‘Events’ was not found in '@ionic/angular
Please suggest the fix for this
When you migrate to a new Major Release, you should read the Changelog and Breaking Changes correctly. See here:
The
@ionic/angular
Events service has been removed.
Use Observable
s instead. They support typing, so you can write more expressive and bug-resistant code. They are named properties, so typos can get caught, unlike Event
s with their string constants. They can be scoped, making more testable code whose boundaries are more clearly delineated. Not to mention getting all the RxJS operators to play with.
thanks for the help…yes I later saw in the docuent.