High Performance Angular Grid with Web Sockets

  Read full article on the Infragistics blog You may have come across the requirement to push data in real time to an Angular Grid. To push data to the browser, you need a technology called WebSocket. You can implement that using NodeJS or ASP.NET SignalR. For the purpose of this article, we will use…… Continue reading High Performance Angular Grid with Web Sockets

Understanding ViewEncapsulation in Angular

To understand ViewEncapsulation in Angular, first we should understand about Shadow DOM.  You can learn in detail about Shadow DOM here. Putting it in simple words, Shadow DOM brings Encapsulation in HTML Elements. Using the Shadow DOM , markup, styles, and behaviors are scoped to the element and do not clash with other nodes of the DOM. Shadow DOM is part of…… Continue reading Understanding ViewEncapsulation in Angular

Understating Angular Change Detection with example

Change Detection means updating the DOM whenever data is changed. Angular provides two strategies for Change Detection. Default strategy onPush strategy In default strategy, whenever any data is mutated or changed, Angular will run change detector to update the DOM. In onPush strategy, Angular will only run change detector only when new reference is passed…… Continue reading Understating Angular Change Detection with example

How to do Conditional Validation on valueChanges method in Angular Reactive Forms

Read full article on the Infragistics blog In this blog post, we will learn to use Angular Reactive Forms value change detection and enable conditional validation on basis of that. Learn How to Create Your First Angular Reactive Form here Let us say you have a Reactive Form created using FormBuilder class as shown below:…… Continue reading How to do Conditional Validation on valueChanges method in Angular Reactive Forms

Simplifying ViewChild and ContentChild in Angular

Read full article on the Infragistics blog In this blog post, we will learn about ViewChild and ContentChild in Angular. Essentially ViewChild and ContentChild are used for component communication in Angular. Therefore, if a parent component wants access of child component then it uses ViewChild or ContentChild. Any component, directive, or element which is part…… Continue reading Simplifying ViewChild and ContentChild in Angular

Step by Step creating Custom Pipe in Angular

Read full article on the Infragistics blog Angular pipes take data as input and transform it to your desired output. For example, using interpolation you are displaying name of the product. Now you want the product name always displayed in the uppercase. You can do this using Angular pipe uppercase. https://gist.github.com/debugmodedotnet/929abeb0c328af3e9a266b49c11a811c In above component, productName…… Continue reading Step by Step creating Custom Pipe in Angular

How to create Custom Validator for Angular Reactive Forms

Learn full article on the Infragistics blog In this blog post, we will learn to create custom validators in Angular Reactive Forms. If you are new to reactive forms, learn how to create your first Angular reactive form here. Let’s say we have a login form as shown in the listing below. Currently, the form…… Continue reading How to create Custom Validator for Angular Reactive Forms

Understanding @Output and EventEmitter in Angular

  Read full article on the Infragistics blog Angular is based on a one-directional data flow and does not have two-way data binding. So, how do you get a component to emit an event to another component? In Angular, a component can emit an event using @Output and EventEmitter. Both are parts of the @angular/core.…… Continue reading Understanding @Output and EventEmitter in Angular