Year: 2018
-
Recap of 2018
Hi Reader, THANK YOU, for being with me in 2018. It was another good year due to your Support, Trust, and Love. Besides, you, I would like to thank my employer Infragistics and my boss Jason Beres that they gave me opportunities to contribute to developer community. If you are an Angular developer, you may…
-
Simplifying Object.assign method in JavaScript
Read full article on the Infragistics blog “In JavaScript, Object’s assign method copies source object’s own enumerable properties to a target object, and returns that target object “ There are two important keywords in the above sentence: Enumerable Own Before we go ahead and understand purpose of Object.assign, it is essential that we really understand these two words,…
-
Video – JavaScript object instances does not copy definition from the class
I recently wrote a blog post about Two Problems of a JavaScript Class. In my opinion one gotchas in a JavaScript class is , object instances does not copy definition from the class. Watch this video to understand it through codes. f you like the video , do not forget to subscribe to our YouTube Channel for notification about…
-
Video – Step by Step Component Communications in Angular
In Angular, components communicate to each other to share data such as object, string, number, array or html. Parent and Child Components can communicate to each other in following ways Parent and Child Components can communicate to each other in following ways @Input() @Output() Temp Ref Variable ViewChild and ContentChild You can learn about…
-
Two Problems of a JavaScript Class
Starting ECMA 6, JavaScript has class keyword to create a class. I have written in detail about class here. There is no second question that class simplifies the way object is created, inheritance is implemented etc. JavaScript class has, Constructors Methods Extends etc. Above features of a class helps to easily write Object Oriented…
-
How to add a static member property in a JavaScript class?
Recently while solving a problem, I came across a requirement to create a property in a JavaScript class, which needs to be shared by all the object instances. In the programming world, these types of properties are called Static Properties. There are various scenarios when you need a static member property: When counting number of…
-
Free Download – Angular Essentials E-Book to help you getting started
Are you new to Angular and just starting with it? Well, I have written a small eBook for you, which you may find useful. You can download it free from here This book does not contain everything of Angular. It just contains topic you need to get started with Angular. In these 10 pages E-Book,…
-
Content Projection in Angular Element with Slot in Angular 7.0
In this article, we will learn how to project content in an Angular Element. If you are unfamiliar with the following, Shadow Dom ViewEncapsulation Content Projection I recommend you read the articles below before moving forward: Understanding ViewEncapsulation in Angular Simplifying Content Projection in Angular As of now, you know that we use ng-content to carry…
-
How to Create Basic Inheritance in JavaScript Constructors
There are four ways to create an object in JavaScript. They are as follows: Object as literal Constructor Invocation Pattern Object.create() method Using class after ES6 Implementation of Inheritance varies according to the object creation method. In this post, I am going to explain creating inheritance in between a function constructor. Let’s say you have…
-
How to seal, freeze and prevent extension of an object in JavaScript
Read full article on the Infragistics blog In modern JavaScript, objects are integral, and having a strong understanding of topics surrounding objects is necessary for writing better JavaScript. You can create an object in four ways in JavaScript. Read about them in greater detail here. Once you know how to create an object, you may…