Bartosz Szłapak
CodeCraft with Barcioch

CodeCraft with Barcioch

Follow
homeTestingnewsletter

RxJS log value pipe

Sep 26, 2023

Sometimes, instead of using debugger keyword, you'll just want to display the values in the console. When using RxJS you'll probably use quick&dirty...

RxJS log value pipe

Null, nullish, nullable

Sep 22, 2023

In most programming languages there is only one way of defining whether the value is set or not. That value is generally considered null but named...

Null, nullish, nullable

Angular @Input and @Output testing

Sep 18, 2023

In this article, I'll show how to test Angular component with inputs and outputs. Setup If unsure how to set up Angular with Jest please refer to the...

Angular @Input and @Output testing

Deep clone object - JSON.stringify/parse, fast-copy, structuredClone

Sep 17, 2023

Everyone, at a certain point in a developer's career, is going to search the internet for "how to make a deep copy of an object". I'll focus on "data...

Deep clone object - JSON.stringify/parse, fast-copy, structuredClone

Angular - custom *ngIf directive

Sep 14, 2023

In this article, I'll show how to create a custom structural directive that works similarly to Angular's ngIf. The goal is to create a directive that...

Angular - custom *ngIf directive

Angular directive testing

Apr 16, 2023

In this article, I'll show how to test Angular directive. To test it I'll create appCloneElement directive. Its purpose is to duplicate HTML elements...

Angular directive testing