• Shelf
  • Toolbox
May 2nd, 2022

A quick way to add Git pre-commits hooks into an Angular Project

If you work in an environment where a pipeline is used for Continuous Integration, pre-commit hooks are incredibly important. Pre-committing allows us to both ensure we write quality code as well as save ourselves from embarrassment by catching bugs before anyone else does. Let's see how we can do this in an Angular project


May 29th, 2022

Improve *ngFor performance with trackBy

Angular uses reference comparison for objects in the list by default. This might not be the optimal approach, especially when you update your list's data from the server. Instead, you could be using some unique and stable identifier that your objects have. Thanks to comparing by the id, Angular won't need to rerender all elements every time you fetch an updated list from an API (object references will be changed but ids won't change).


Pages

  • Home
  • Shelf
  • Toolbox

Extras

  • Resume

© 2025 Gentle Joseph | All rights reserved.