Tag: JavaScript
-
Understanding and Validating JWT using Json Web Key Sets in Microservices
Before we jump on the approach of validating the JWT Token we need to know a few basics and then we can discuss about the below points. How we can sign the JWT Token. Why do we require a JWT Token to be signed. What is JSON Web Key Set ? Why and How to use […]
-
What are closures in Javascript (JS)
A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). In other words, a closure gives you access to an outer function’s scope from an inner function. In JavaScript, closures are created every time a function is created, at function creation time. Lexical scoping Consider the following example code: […]
-
Understanding Shadow DOM.
When ready about angular 2+ and also other front end libraries you might come across term like virtual DOM and Shadow DOM. Some might say that react is better and it uses virtual DOM and not Shadow DOM So Let’s take a deep dive into what is shadow DOM. Browser provide us with an API […]
-
Read a file content within the browser using JS.
There are scenarios where you would have to show the content of the file on the browser. You can easily do it at client side easily. Let checkout how to do that. Create a new HTML Page and add the below element to it. Let add few buttons to make this thing more interesting. we […]
-
Rotate a web page
transform is the CSS property responsible for this. It determins the point the element is rotated around of. If you change the transform-origin and rotate the element, the position of the element can change depending on what value you use. You can change the value of transform to the result you need. Rotate a web page 90 degree […]
-
[Angular] Alias for Import (@angular)
import { SomeService } from “@app/core” To be able to use @ aliases we have to add base URL and paths properties to our tsconfig.json file like this We are also adding @env alias to be able to easily access environment variables from anywhere in our application using same It will work for all specified […]
-
Building Your First Serverless Service With AWS Lambda Functions
Many developers are at least marginally familiar with AWS Lambda functions. They’re reasonably straightforward to set up, but the vast AWS landscape can make it hard to see the big picture. With so many different pieces it can be daunting, and frustratingly hard to see how they fit seamlessly into a normal web application. The […]
-
Check if Silverlight is available on the browser? Detect if Silverlight is Installed !!
Though its 2020, and its time the cutting edge JavaScript libraries and frameworks are dominating the web market space. There are still some legacy code still using the .NET Frameworks and somewhere kept still in use and no one dare to affect the running business and why should one invest on something which is still […]