Isolating Side Effects from Components

Learn how to remove the side effects from the ProductsComponent.

Introduction

The purpose of using NgRx Effects is to remove side effects from the Angular components. In our src/app/products/products.component.ts file, we’re using the ProductsService class to fetch product data from the server. In this lesson, we’ll refactor the ProductsComponent to remove the side effects.

Get hands-on with 1400+ tech skills courses.