Convert one object list to another in Typescript

Suppose I have a list of student information as follows:

with the Student class with the following content:

If I now define another class StudentInfo that also contains student information with more information about the class as follows:

To convert the list… Read More

Convert JSON data list string to object list in TypeScript

To convert a JSON data list string to a list of objects in TypeScript, you can use the parse() method of the JSON object. For example, I have a list of classes returned from the backend as a GraphQL response as follows:

On the… Read More

Update NodeJS on macOS

To update NodeJS on macOS, you can use a tool called “n” which is installed using Node Package Manager. How is it in detail? Let’s find out together in this tutorial! First, please check the current version of NodeJS on your machine using the command:… Read More

Introduction to Socket.IO

Socket.IO is a library that makes us possible to implement a 2-way communication channel between client and server with low latency based on events. We can use Socket.IO to implement a WebSocket server. Originally Socket.IO was written in JavaScript but some other languages are also… Read More

Interpolation directive in Angular

When creating any new Angular project, you’ll see the default in the app.component.html file, thing, which in the tutorial about Angular’s Component I call it placeholder {{title}}, actually its name must be the Interpolation directive, which is used to display the data from the Component… Read More

Install Node.js on Window

I have guided you how to install Node.js on macOS in the previous tutorial. In this tutorial, I will guide you to install it in the Windows environment! First, you need to go to the address https://nodejs.org/en/download/ to download the latest version of Node.js. Then… Read More