Tag: Typescript
Alternative to Typescript Classes that can be Compared
Classes in Typescript have the drawback of not being comparable, like when used as a key in a Map. This post describes a possible alternative using unique symbols. Works well when you don't have to perform operations on the values. Read →
Gatsby Source Plugin for Twitter
Using Angular HTTP Interceptor for Logging
A thing we’ve found handy in the Angular application I’m currently working on, is the console logging of HTTP requests and responses. This makes it quick to determine if a problem exists in the Angular app or in the REST service we’re calling (that we develop alongside the Angular app). Since logging it this way will show exactly which method is being called, the data being sent, headers and everything you need, there is no risk of mistaking one server interaction with another one. Read →
Code Sharing with Multi-App Angular Project Using Base Components
I’m building a new version of a web shop in Angular that should be used on three different web sites for three of my client’s subsidiary companies. In the current solution, everything but the CSS is common, even the HTML. That has proven to lack the necessary flexibility when the different subsidiaries have different needs and their design agencies are told that they are not allowed change the mark-up. Every change also has to be approved by all three subsidiaries, which takes time. Read →