Import the StoreModule.forRoot in the TestBed configuration when testing components or services that inject store. Reducing state is synchronous, so mocking out the store isn't required. You can refer the example...
Angular Lifecycle Hooks
Angular allows us to trigger the actions at the specific point in the lifecycle of our components. Whenever data bound input property value changes occur or any view render or any component created or destroyed the lifecycle hooks will be called. So any operations...
Running code inside or outside Angular zone.js
The automatic change detection made on UI components by asynchronous operations like http requests which are taking more time to receive the response from backend or timers(setTimeout() or setInterval()) loops etc are handled by zone.js. NgZone is a wrapper around...
Angular NgRx Introduction
NgRx used for developing reactive angular applications. @ngrx/store is used to store the data in a container and dispatch it using the set of predefined actions. It will be very useful while developing huge applications which consists of many components and services....
Components Interactions Using Input and Output Decorators in Angular
You can refer the example here:https://stackblitz.com/edit/angular-pvfb46 Step 1:Let us start by creating an angular applicationInstall the angular/cli globally in your systemFor this runnpm i -g @angular/cli This command installs angular cli globally After executing...