Working with Ionic 3 (Ionic 4 still sucks for production apps) I had this weird requirement to subscribe to one Observable and in case of error, wait some time, repeat the action twice and if it fails again, catch the error and do some stuff. First I thought it's really easy to do this with … Continue reading RxJs – Retry with delay and error handling
Tag: TypeScript
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?
TypeScript you liar…!
I was playing with the TypeScript playground (http://www.typescriptlang.org/play/) and noticed how cool is to have a great linter that checks your code for all kinds of errors and gives you meaningful warnings. So check this out: ... and after you hit run!