How to add dots every 3 digits in currency values with JavaScript

If you’re European like me, you’re probably used to this notation: € 366.432 instead of 366,432 or 366432. In order to get this done in JavaScript you want to do the following: // Number var money = 366432; // Convert to String and add dots every 3 digits var moneyDots = money.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, “$1.”); // Set […]

How to fix getting stuck when scrolling up in Framework7

The problem in Framework7 In most webapps for iOS (not only Framework7) that use -webkit-overflow-scrolling:touch for scrolling within elements instead of the whole body you will experience the following issue: You scroll up to the very top of the document and then you scroll down immediately when you get the bounce back. You will notice […]

Experiment: An iPhone app built with Framework7, TypeScript, and Angular 1.x

Disclaimer: Since this post is getting quite some attention I have to state some things clear, so read this first! This example is not best practice on how to use Framework7, it’s more of an experiment to see how it works with Angular and TypeScript. Framework7 has an own templating engine called Template7 so Angular […]