Gurinderpal Singh NarangSelecting Appropriate Jasmine Functions for Meaningful Unit TestingUnit testing is more than just making sure your code is covered and produces the expected results. The real goal of unit testing is to…Dec 19, 2023Dec 19, 2023
Gurinderpal Singh NarangTemplate querying in Angular using @ViewChild and @ViewChildren decorators.When we want to get a reference of an element from a template in an Angular component class, in that case we can use ViewChild and…Nov 3, 2023Nov 3, 2023
Gurinderpal Singh Narang@ViewChild and @ViewChildren in Angular - Part 2We discussed in the preview blog that the @ViewChild and @ViewChildren decorators in Angular are primarily used for querying elements in…Nov 6, 2023Nov 6, 2023
Gurinderpal Singh NarangContent projection in AngularContent projection allows you to insert and project content into a component’s template from outside the component. This is a powerful…Nov 24, 2023Nov 24, 2023
Gurinderpal Singh NarangAngular Interview QuestionsLife cycle hook methods in AngularNov 24, 2023Nov 24, 2023
Gurinderpal Singh NarangLifecycle hooks in AngularIn Angular, lifecycle hooks are methods that provide visibility into the lifecycle of components and directives. These hooks allow you to…Nov 24, 2023Nov 24, 2023
Gurinderpal Singh NarangBootstrapping in AngularIn Angular, bootstrapping refers to the process of initializing and running an Angular application. It involves loading the root module of…Nov 30, 2023Nov 30, 2023
Gurinderpal Singh NarangAccessing Child Component Instances using ContentChild and ContentChildrenIn Angular, @ContentChild and @ContentChildren decorators are used to access child components or directives that are projected into the…Dec 4, 2023Dec 4, 2023
Gurinderpal Singh NarangUnit Tesing vs E2E TestingUnit testing and End-to-End(E2E) testing are two distinct levels of software testing, each serving different purposes within the software…Dec 5, 2023Dec 5, 2023
Gurinderpal Singh NarangBasic terms while writing unit test cases in Angular using Jasmine and KarmaIn Angular projects, the ng test command is used to run unit tests, and Jasmine is the default testing framework paired with Karma as the…Dec 9, 2023Dec 9, 2023
Gurinderpal Singh NarangComplete guide to test Angular Service having a dependency over HttpClient(REST API)When testing an Angular service that has a dependency on HttpClient, it's important to avoid making actual HTTP requests during tests to…Dec 13, 2023Dec 13, 2023
Gurinderpal Singh NarangDirectives in AngularDirectives are classes that add additional behaviour to elements in your Angular applications. Using directives we can introduce new…Dec 19, 2023Dec 19, 2023