Best practices

NgRx

NgRx: tips & tricks

NgRx is one of the good options that developers choose to use in their Angular applications whenever the application grows a bit and something is needed to manage the state. While working with NgRx I’ve found out a series of tips that I would have loved to know beforehand.

Read
TypeScript

Barrel files: to use or not to use?

How to use barrel files in our projects. Should you use them? If yes, how to organize code around them and where to place these files. Read on to find out more.

Read
NgRx

Update on testing NgRx Effects

A while ago I’ve written a post on how to test NgRx effects. If you did not read that one I encourage you to go and have a look. Since then, both NgRx and RxJs have released some new versions and there are some things we need to update in our tests.

Read
Angular

Custom preloading strategy for Angular modules

Lets say we have a medium sized Angular application and each large feature split into a lazy loaded module. When the application starts, we load only the main modules and all the routes are lazy loaded, including the first one that we navigate to.

Read
TypeScript

Use absolute paths for module imports

Handling imports is a bit more trickier to manage due to paths and constant refactoring that one will do inside a more complex application.

Read