Today I wanted to show you different techniques to handle long form text. By default things are handled well by browsers. But sometime we have fixed layout and the content is user generated. Text could be single line like Title, Subtitle and multiline as description That how text looks when there are no constraints. Text falls to next […]
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 […]
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 […]
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 […]
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: [ […]
