Categories
Angular Ionic Tutorials

Add Dynamic data to ng2-chart

Previously on this blog. Person A: I need a chart on my app, which looks like a circle. A circle without the center. Person B: A what, you mean pie. Person A: Not a pie it has it’s name. Person B: “What name” Person A: It start with d, da, a  Person B: A doughnut chart […]

Categories
Ionic Tutorials

How to add Chart to your Ionic Angular App

You need to add chart to you ionic angular app. What are the options. Ngx Charts Ng2 Charts Ngx Charts It has a great online demo. Looking at the demo you have dozen of different chart choices. From Bar Chart to Line Chart to Pie Chart. I think it also comes with two color schemes […]

Categories
Tutorials

Swapping variables values hasn’t been that easy in JavaScript

Now with new language features Javascript swap variable values very easily. While doing laundry a thought popped up in my mind and how it relates to JavaScript. Imagine the following picture. Now how you could swap clothes from these two machines. You do need a temporary container to hold clothes from side and make the […]

Categories
Tutorials

Use Recursive Types in Typescript

Interface is such a nice feature in Typescript for custom static type checking. Main reason is to make your code less error prone but I use it primarily for intellisense. Today we will be discussing recursive types. I need to modal the accordion in HTML using following object. { title: “Parent”, expanded: true, subItems: [ […]

Categories
Tutorials

Implement Show Hide Password in Ionic/Angular

We are required to create secure passwords. For secure password we need to follow some strict rules. Some of these rules are: – At least one uppercase alphabet – At least one special character – At least 12 characters and the list goes on. While keeping these requirements, visitors to your website can have a […]