Node

Typescript – How to solve the problem with unresolved path aliases in transpiled .js files
|

Typescript – How to solve the problem with unresolved path aliases in transpiled .js files

Here is a somehow detailed description of a well know issue related to the fact that the tsc compiler (transpiler) does not resolve/emit correctly the path aliases to the output JavaScript .js files. As a result, when you try to run the output file via node you get an error.
The solution presented here uses a tiny external specialized package and more specifically as a demo it uses the @ef-carbon/tspm.

Use a bash script to automate a Typescript-Node project scaffolding in your Mac
|

Use a bash script to automate a Typescript-Node project scaffolding in your Mac

Even in the case you are a newcomer, sooner or later, you will start boring the routine of repeating, again and again, the same actions.
Here there is a quite simple approach using just a pure bash shell script. No external tools or npm packages. Just a quick, clean and fast solution, especially handy for your very fundamental installations.

Angular Custom Directives – Part 1: Attribute Directives
|

Angular Custom Directives – Part 1: Attribute Directives

The concept of the ‘Directive’ comes from the early versions of Angular (e.g., AngularJS 1.X) The concept covers almost all the basic building blocks of Angular, including Components. Angular provides ‘ready-made’ Directives that we can use them directly in our templates. However, here we will focus on Custom Directives, with examples to both, Attribute and Structural Directives. In this post we give a step-by-step example with code, for a Custom Attribute Directive.

First steps in Typescript Array Sorting
|

First steps in Typescript Array Sorting

Like many other languages, Typescript offers a built in Array sort() method. However, most of the times we have to use and pass our own comparison function. This is the case, especially when we have to order arrays of objects, and ordering should be based on specific object property. Moreover, we have also to take into account the default mutability of arrays, if we have to preserve the initial arrangement of the elements in an array.

Installing Typescript via node, and start using it via VS Code (macOS)
| | |

Installing Typescript via node, and start using it via VS Code (macOS)

Typescript is a programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript and adds optional static typing to the language. TypeScript is designed for the development of large applications and transcompiles to JavaScript.

Angular – Installation on Ubuntu (Kubuntu), create/start a new (default) project, and start working with
| |

Angular – Installation on Ubuntu (Kubuntu), create/start a new (default) project, and start working with

Angular is a very popular (mainly front-end) development platform, built on TypeScript (which extends Javascript language). Here, is how to install it on a Kubuntu 20.04 machine, as well as how to create a new project/app and start working with it.