Print single or multiple files with Print.js and PDF.js

Ever wondered if we can print almost every format file through our JS code. Not only just printing, we can also merge multiple pdf files & save them in one single PDF file. Yes you heard it right!! Here we will see how easy it is to support printing of multiple pdf files or save…

Publish an app to Workplace

Workplace by Facebook is a powerful tool to communicate and interact with employees at work. Adding apps to your workplace community can add great value for several scenarios. There are two ways to integrate any app with Workplace:  Custom Integrations  Third Party Apps Basically, It depends on our requirement, which one we need to choose…

Building a webapp and you have security in your mind?

This article will help you take a better insight into the security aspect of web applications and APIs written in any language e.g. react, angular, node.js, .net, python, etc. Recently we were working on the admin portal for a chatbot application where the product was ready for MVP and had to enter the certification phase….

TypeScript functions optional parameters

Have you ever been in a situation where you want a function with the same name but with different parameters? Yeah, I’m talking about function overloading… Function overloading helps you define a function with the same name but with different signatures. But do JavaScript supports function overloading? No. There’s no function overloading in JavaScript, and…

Reading Local JSON present in an Angular 2 or 4 project

Recently I have been working on an angular 2 project which required reading of a local static JSON file present in the project folder itself. I searched over internet to find a way to read JSON and this is what I got: private _productURL = ‘api/products/products.json’; getProducts(): Observable<any> { return this._http.get(this._productURL).map((response : Response) => <any>…