Categories
Angular Java Script Tutorials

Barrel file benefits in JavaScript

Barrel file is a single place to re export your functions, variables etc for your modules. I have divided this post into Introduction Caveats Case Study

Categories
Electron Tutorials

Writing your first app with Electron

This post is in continuation with the previous posts about creating desktop application using Electron app framework I have covered Introduction in previous post. Our Approach We can get started with two approaches Bottom to top: With this approach we can start really from basics like words, sentence and paragraph and build up. Top to […]

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

Challenges with JavaScript date and Ionic ion-datetime

Dealing with JavaScript has never been easy for me. In JavaScript Today’s date is represented as 2017-11-23. It’s December but no where you can find 12 in it. That’s because months in JavaScript starts from “Zero”. That’s first confusion for you. Ionic comes with ion-datetime component which lets you easily choose date and time. With native UI and feel for your […]