Recently, I started using Ionic and came across a location page. In the location/location.page.ts file, there was an automatically generated empty constructor like this:
constructor() { }
Initially, the page functioned properly with this setup. However, as soon as I added parameters to the constructor, the page refused to load.
constructor(private httpProvider: HttpProvider, public geolocation: Geolocation) { }
I'm curious if there is anything else I need to do when adding parameters to the constructor. This is part of an Ionic 4 project and I also made sure to update the appmodule.ts file accordingly. Is there something crucial that I might be overlooking?
https://i.stack.imgur.com/Vfi95.png
https://i.stack.imgur.com/FcOnk.png
Thank you.