How to use NavController from a Service in Ionic 3

Sometimes you want put some navigation code in a service. If the service is provided at root level you can't inject the NavController because you don't have any at application startup and your application will crash. The naive solution is to pass the NavController as parameter to the service method like this: This solution is … Continue reading How to use NavController from a Service in Ionic 3

Do TypeScript allows us to program like Java?

I think in many ways TypeScript is superior to Java but unfortunately, TypeScript is not a magical tool that fixes all the things wrong with JavaScript and in fact, is very dynamic and much closer to JavaScript than to Java. From my experience, many developers (especially Angular developers) don't get that. TypeScript is basically JavaScript … Continue reading Do TypeScript allows us to program like Java?