Dhananjay Kumar

  • Speaking
  • Angular Master class
  • Making Angular Service – Always  Singleton

    By default, Angular Services are Singleton. When you create a service using the CLI command, ng g s App Angular creates a service named AppService. The above service is Singleton Tree-shakeable Available throughout the application Singleton means Angular creates only one object of the AppService, regardless of how many places you use it. However, if […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    August 10, 2022
    Angular
    Angular, angular service
  • Angular 14 –   Introducing Standalone Components

    Angular 14 introduces Standalone Components. A component that is not part of ngModule.

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    June 7, 2022
    Angular
    Angular, angular 14, standalone components
  • Conducted a two-day Angular workshop for Engineering students from Rural India

    If you wish to change a country, start with villages and rural parts. India is a land of talented young minds, and all of them could not be found on Twitter or in the big cities. So, to teach and put them on the right path, one has to travel to the remotest part of […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    April 9, 2022
    Community
    Angular, Community, geek97, students
  • The simplest way to disable console.log for Production build in Angular?

    I work with different developers, and most of them rely on console.log () or other console methods for development. They use the console to print various values to debug while doing the development. I call this approach console-driven development. Cool name, right? These console functions become overwhelming in production as users can see many things […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    April 6, 2022
    Angular
    .console, Angular
  • Make all properties optional using Partial in TypeScript

    The utility type Partial<Type> makes all properties of a type optional. Using a scenario, let us try to understand Partial<T> in TypeScript. So, you have a type called Product, that is created as below:   export interface Product {   Id: string;   Title: string;   Price: number;   inStock: boolean;   Quantity: number; } And there is a function to update the price of a product as shown […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    April 2, 2022
    JavaScript, TypeScript
  • Video – Master JavaScript ‘this’ in 30 Mins

    Do you know, there are four ways to calculate the value of ‘this’ inside a JavaScript function?  Some pointers about ‘this’  Every function has it’s own ‘this’  An arrow function does not have it’s own ‘this’ The value of ‘this’ depends on, how that function is called.  The value of ‘this does not depend on […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    August 7, 2021
    JavaScript, Video
    Functions, Javascript, this, Videos
  • JavaScript function is also a constructor?

    JavaScript function is also a “constructor.” You must have heard it many times, haven’t you? Well, that is a wrong way of interpreting the JavaScript function; even though you can create an object using a function, it does not mean you can call it a constructor. Let us discuss it: There are four ways to […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    May 22, 2021
    JavaScript
    constructor, Javascript
  • Video – Angular Interview : is Angular Service Singleton ?

    One of the most popular Angular interview questions is, whether a service is singleton? By default, when you create a service using the below CLI command, ng g s app AppService is singleton, however it can be re-provided to create more objects of it. Say, you again re provide AppService in one of the components, […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    April 14, 2021
    Angular, Interview Questions, Video
    Angular, geek97, Interview
  • Video : __proto__ in JavaScript

    This video explains __proto__ in JavaScript in less than 5 minutes

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    November 20, 2020
    JS Videos, Video
    Interviews, Javascript, Video, __proto__
  • Union and Intersection of types in TypeScript

    Do you know, TypeScript allows union and Intersection of types? Why you need that? Let us assume you need to create a function that checks whether the passed value is boolean true and returns true, otherwise returns null. That function may look like below, function trueOrNull(foo: any): any {     if (foo === true) {         return true;     }     return undefined; } console.log(trueOrNull(88)); // null  As you see, the […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    November 2, 2020
    JavaScript
    intersection, TypeScript, union
1 2 3 … 92
Next Page

Dhananjay Kumar

Dhananjay Kumar is a teacher and consultant from India.

He is the best-selling author of the Angular Essentials book and a Google Developer Expert in Angular. He also organizes ng-India, one of the largest Angular conferences in the world.

ADDRESSGurgaon, India

Gurgaon , India

debugmode[at]outlook[dot]com

GET IN TOUCH

  • LinkedIn
  • Twitter
  • Amazon
  • YouTube
Read more
  • Follow Following
    • Dhananjay Kumar
    • Join 7,431 other followers
    • Already have a WordPress.com account? Log in now.
    • Dhananjay Kumar
    • Edit Site
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar