Angular 2 : Sending requests with cache control headers

Sometimes we need to send post requests to server with cache control so that the browser does not cache the response for subsequent request. This could lead to pretty frustrating situations with some browsers(that’s you, IE!) having strict cache control and we will see in a minute how we will wrap …

Setting up Node.js on Amazon EC2 instance

Have you been planning on setting up Node.js and related dependencies on your EC2 instance but unable to find a all-in-one guide? If so, you have come to the right place. For this article i am using Amazon AMI EC2 instance running a Fedora Linux. It is a t2.micro instance and has …

Using Wistia Data API with Node.js

Wistia is a video hosting company which provides video storage as well as analytics solutions to businesses. I have been working with Wistia API for one of my clients for some time now and have used Wistia Data API extensively to work with their hosted videos. This post is about …

Using Dropzone.js with Angular 2

Dropzone.js is a file upload plugin that provides us with the ability to Drag and Drop as well as preview uploaded files. I have been using this plugin with core js for some time now and after recently i had to use it with Angular 2 as well. Here is how …

Angular 2 shared events

There are certain cases while developing a web app when we have to emit certain events when something occurs or something changes in one component. We want other application component(s) to be notified of the change. In Angular 2 we have two ways to notify components of those changes. Output …

Sails Model.destroy() fails

A few days ago i ran into an issue where i was getting the following error running destroy() on a MySql database table.

Investigating further, i came to know that the table in question by chance did not have a primary key. Looking into the destroy function in the sails-mysql adapter, I figured out the reason …

Integrating Angular (4) with Sails.js

Update #6 April 13, 2017: I have updated this post as well as the sample code repo to use Angular 4.0.2. Update #5 November 23, 2016: I have updated this post as well as the sample code repo to use Angular 2.2.1. Update #4 September 23, 2016: I have updated this post as well as the sample code repo to use Angular 2.0.0. Update #3 September 4, 2016: I have …

Interact.js : Resize using a button

A few days ago i had to implement a resize functionality for one of my clients and i needed a library that was not dependent on jQuery since i had to implement it as a widget and i wanted to avoid any conflicts on host site  at all. So during …