Angular Interview Questions & Answers πŸ’‘ What is ng-template in Angular? ng-template is a template element that is used with structural directives like *ngIf, *ngFor, [ngSwitch], and custom directives that we create. So what happens here, Actually Angular converts the above structural directive to the below ng-template code: πŸ’‘ How can we manually use *ngIf […]

Read More →

Why Angular is a Preferred Choice βœ”οΈ Framework is written in TypeScript Having a built-in TypeScript, Angular provides robust tools to create the client-side of web applications. βœ”οΈ Single-page applications (SPAs) It’s time for SPA (single-page applications) and Angular does its best in that.When we run a web application on a browser and do not […]

Read More →

Angular Interview Questions & Answers πŸ’‘ What is property binding and attribute binding? βœ” Property binding in Angular helps you set values for properties of HTML elements or directives.In this example, src is the name of the element property. βœ” Attribute binding in Angular helps you set values for attributes directly. With attribute binding, you […]

Read More →

Web Application Security Best Practices Is Web development only writing codes that work and run successfully? Not true. It is also about writing code that is secure and safe from vulnerabilities.A number of common vulnerabilities are coming in web applications. Some of those are because of bad coding practices, irregularities in patching updates, misconfiguration of […]

Read More →

NgRx Top Interview Questions and Answers First I would like to thanks the NgRx team for such a great library and for nice documents. Below answers are taken by NgRx official doc.Go to Docs: https://ngrx.io/docs πŸ’‘ What is NgRx? NgRx is a library for building reactive applications in Angular, inspired by Redux, a very useful […]

Read More →

Tips to Boost Angular App Performance βœ” Stop unwanted Change detections By default, components in an Angular application runs change detection for every user interaction. We can use ChangeDetectionStrategy.OnPush in the @Component decorator. This tells Angular to run change detection only if an input has changed, and that all of the inputs can be considered […]

Read More →

Angular NgModule AOT and DI βœ‹ What is an alternative to the @Input and @Output decorator? inputs and outputs selectors in component decorator are another way to define input and output properties, If we do like this we don’t need to import @Input and @Output. inputs: [‘name’, ’empId’],outputs: [‘changeName’, ‘updateId’] βœ‹ What are all types […]

Read More →

Angular Dependency Injection Provider The Angular Dependency Injection provides several types of providers. Class Provider : useClass Value Provider: useValue Factory Provider: useFactory Aliased Class Provider: useExisting useClass Provider when you want to provide another class with your provider DI Token then we use useClass class provider. This may be an instance of the same […]

Read More →

Rx JS Top Operators with examples Let’s start operators with definition and examples: βœ‹ from operator Turn an array, promise, or iterable into an observable. πŸ’‘ This operator can be used to convert a promise to an observable! πŸ’‘ For arrays and iterables, all contained values will be emitted as a sequence! πŸ’‘ This operator […]

Read More →

What’s new in Angular 9 Angular 9 release completely switches an angular application to a new fast reliable and performance-oriented compiler by default that is IVY. Angular 9 also introduced improved ways of testing components. How to update to version 9 As per Angular official… βœ‹ To have the best update experience, we recommend you […]

Read More →