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 mayContinueContinue reading “Recap of 2018”
Tag Archives: Javascript
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,ContinueContinue reading “Simplifying Object.assign method in JavaScript”
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 aboutContinueContinue reading “Video – JavaScript object instances does not copy definition from the class”
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 OrientedContinueContinue reading “Two Problems of a JavaScript Class”
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 ofContinueContinue reading “How to add a static member property in a JavaScript class?”
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 haveContinueContinue reading “How to Create Basic Inheritance in JavaScript Constructors”
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 mayContinueContinue reading “How to seal, freeze and prevent extension of an object in JavaScript”
Angular Components: Pass by Reference or Pass by Value?
Read full article on the Infragistics blog In Angular, you can pass data from parent component to child component using @Input() decorator, and a child component can emit an event to a parent comment using @Output() decorator. The purpose of this blog post is to explain you whether it is pass by reference or passContinueContinue reading “Angular Components: Pass by Reference or Pass by Value?”
Module Pattern in JavaScript
In JavaScript, code encapsulation can be achieved using Modules Patterns. In addition, it is used to create private and public properties. There are various ways a module pattern can be implemented. In this article, we will learn to create a module pattern in ES5. Before we go ahead and start looking into implementation of theContinueContinue reading “Module Pattern in JavaScript”
Hosted 11th free Angular session
On 13 January 2018, geek97 hosted 11th free session on Angular in Gurgaon. You can find detail of meetup hereAround 35 senior Angular Developers attended the meetup and Dhananjay Kumar delivered the sessions. There were two sessions:Component Communications @Input @Output EventEmitterTemp Ref variable Reactive Forms FormControl FormGroupValidation Custom Validation You can learn in details aboutContinueContinue reading “Hosted 11th free Angular session”