minibhati.hashnode.devEffects From Scratch: Building effect() Using Closures and Observers in TypeScriptThis post is Step 2 of the Behind the Framework series. In Step 1, we slowed down and answered a deceptively simple question: 👉 What is a signal, really? If you haven’t read it yet, start here: Behind the Framework — Step 1: Signals In that post, we...6d ago·4 min read
minibhati.hashnode.devSignals From Scratch: Building signal() Using Closures in TypeScriptSignals are becoming a core primitive in modern frontend frameworks. But instead of starting with how to use signals, I wanted to start with a deeper question: What is a signal, really — at the lowest possible level? This post is the first entry in...Feb 7·4 min read
minibhati.hashnode.devIntroduction to Dependency InjectionLet me start with an analogy explaining what exactly DI is! Imagine you need to go to work today. Think of all the things you need. Clothes - You have shirts in your closet. You don't bother about the details of how that shirt was created. You pick ...Sep 26, 2022·2 min read
minibhati.hashnode.devHow to respond to input changes reactively in the child componentComponent interaction can work in one of the following three ways: ngOnChanges() lifecycle hooks Setters on the @Input() property Services If your component is a presentational component and interacts only with the @Input() and @Output() propert...Aug 15, 2022·1 min read
minibhati.hashnode.devHow to configure Jest for unit testing in an Angular applicationToday, we will learn how to configure Jest in an Angular application. Angular application by default comes with Karma/Jasmine for unit testing so we need to follow some steps to configure Jest in our applications. What is Jest? Jest is a popular test...Aug 14, 2022·2 min read