What are @HostBinding() and @HostListener() in Angular?

Read full article on the Infragistics blog To understand @HostListener and @HostBinding, you should have basic knowledge about directives in Angular. There are three types of directives in Angular: Component Attribute Directive Structural Directive The basic difference between a component and a directive is that a component has a template, whereas an attribute or structuralContinueContinue reading “What are @HostBinding() and @HostListener() in Angular?”

How to Create Your First Angular Reactive Form

Read full article on the Infragistics blog Out of the box, Angular provides us with two types of forms: Template Driven Forms Reactive Forms In Template Driven Forms, you create controls on the component template and bind data using ngModel. With these, you do not create controls, form objects, or write code to work withContinueContinue reading “How to Create Your First Angular Reactive Form”

geek97 hosted Angular workshop for girls students

I am very pleased to share that on 16 November 2017, geek97 hosted a free workshop on Angular for Girls Students of Indira Gandhi Delhi technical University for Women, Delhi. The workshop was attended by around 40 energetic and super talented girls from Computer Science Engineering and MCA department. Every student were writing codes andContinueContinue reading “geek97 hosted Angular workshop for girls students”

How to write Unit Tests for a .NET Core Application

Read full article on the Infragistics blog Writing unit tests is a good software engineering practice. In this article, we will learn how to create a C# .NET Core application while adhering to the Test Driven Development (TDD) approach. In the TDD approach, before implementing a functionality, you write a unit test for it. ForContinueContinue reading “How to write Unit Tests for a .NET Core Application”

Simplifying function expressions and the function statement

Read full article on the Infragistics blog In JavaScript, a function can be created in three possible ways: Function as an expression Function as a statement Arrow functions In this post, we will learn about function expressions and the function statement. Consider the following code: https://gist.github.com/debugmodedotnet/f7f9c0a6e18a62521ad5fd6656adb69e When you create a function as shown above, itContinueContinue reading “Simplifying function expressions and the function statement”

How to Write Your First .NET Core 2.0 Application

Read full article on the Infragistics blog hereMicrosoft .NET Core is a cross-platform open source software development framework that can be used to build applications for mobile, Windows, and the web. You can learn more about .NET Core here, but in this blog post, we’ll walk you through how to create and publish a .NETContinueContinue reading “How to Write Your First .NET Core 2.0 Application”

What are getters and setters in JavaScript

In JavaScript, you may have heard of getters and setters. Let’s take a look at what these things are.First, a setter is used to set the value of a property. A setter gets called each time the value of the property is changed. In other words, it executes a function for each time a propertyContinueContinue reading “What are getters and setters in JavaScript”

JavaScript Object Property Descriptors

In JavaScript, you can create an object literal as shown in the listing below:At first sight, it looks like the object cat has two properties with a string and number value. However, it’s much more than that to a JavaScript interpreter. In ES5, the concept of a Property Descriptor was introduced. Before we go aheadContinueContinue reading “JavaScript Object Property Descriptors”

Simplifying Content Projection in Angular

In Angular, content projection is used to project content in a component. Let’s take a closer look at how it works:Content projection allows you to insert a shadow DOM in your component. To put it simply, if you want to insert HTML elements or other components in a component, then you do that using conceptContinueContinue reading “Simplifying Content Projection in Angular”

Arrow functions in JavaScript

The JavaScript arrow function is a shorter way of writing a function expression that was introduced in ECMAScript 6. Usually in JavaScript, you can create a function in two ways:Function as statement Function as expressionA function statement can be created as shown below:The same function can be created as a function expression as shown below:ECMAContinueContinue reading “Arrow functions in JavaScript”