Browse the archive

Tag: TypeScript

Solved: Angular – Invalid version: “15.2-15.3”

Problem Whilst working on a new Angular project I recently came across an unusual error when trying to build a new project generated through the Angular CLI. In this post, I’ll explain how I resolved this issue. > ng build √ Browser application bundle generation complete. An unhandled exception occurred: Transform failed with 1 error: […]
Read article

Solved: Why Async/Await does not work with .forEach

The Problem Javascript offers a number of different ways to iterate over an array. Recently while using the array.forEach syntax, I came across some interesting behaviour when using them with the async/await syntax. To demonstrate. Lets take the following Javascript code which simply prints some messages to the console every 2 seconds. function waitForTwoSecs(i) { […]
Read article

How To: Deep Clone a JavaScript Object

Overview JavaScript is becoming ever increasingly more popular as time goes by. While JavaScript has many advantages, it also has many interesting quirks or nuances that can catch out new beginners. In this post I’ll show you how to deep clone a JavaScript object. Problem Okay … before we go any further … lets take […]
Read article

How To: Debug Angular apps with Google Chrome in VSCode

Overview VSCode is a fantastic IDE for editing <insert your favourite language here> source code. Likewise Angular is a great framework for developing front-end web apps. When developing applications, we developers usually spend most of our time in the debugger. However, out of the box there is a little bit of setup required to enable […]
Read article