Blog
How to find object with id from array of objects and manipulate it in TypeScript
The solution (one of the possible solutions) is to find the index with findIndex method and then manipulate the object in the original array of objects with that index
Blog
Get ion-toggle value in Ionic5 and Angular 12
There are use cases on when not to use ReactiveForms. In this case, I have some ion-toggles with versions of a book. I just want to use the value of the toggle in my function and whether is set to false or true.
Blog
Fixing the reactive forms NG0100: ExpressionChangedAfterItHasBeenCheckedError or zone.js Angular error with ng-recaptcha or angular-recaptcha3
I was stuck quite long with errors while implementing a ReCaptcha with Angular. I finally was able to fix this annoying console error.
Blog
How to use functions inside a switch statement in TypeScript
Personally, I like the readability of switch statements. Here is how to include functions as well in TypeScript.
Blog
How to upgrade Drupal to PHP 8 with Composer
Drupal 10 (release end 2022) needs PHP 8. It will not be possible to run Drupal 10 on PHP 7 or earlier.
Blog
Single-line if statements in TypeScript how to
I'm tired of these old-school single-line statements and looked up one-line solutions. The following one is pretty clean in my eyes
Blog
How to create a patch for a drupal module that is not in version control [blog + screen cast]
The following use case can occur when developing drupal: you want to patch a module, but it is a contrib module that is not in version control (it is ignored by git and gets downloaded on build). Therefore you can not use the standard GIT commands for creating a patch.
Blog
How to check if two arrays of objects are identical in TypeScript
Comparison of objects is something we have to do often. Lodash is a good partner for this!
Blog
How to know if you have to use the constructor or ngOnInit in Angular?
I came to the point that I did not know when to use the constructor or ngOnInit. I had this Observable not giving me data until I reached the NgOnInit function.
Blog
How to check for code deprecations in Drupal
Since Drupal 8, the community is actively updating the source code. Deprecations are something to deal with. This blog post shows you how to monitor your code.