Aug 21Member-onlyDisable mouse wheel scroll on <input type=”number”> AngularThe native <input type="number"> element will update values upwards and downwards when you use mouse wheel scroll. Though it might be a desired user experience, sometimes you will find in a situation where a user is scrolling the page, and instead it updates the <input> value. If you would like…Angular1 min readAngular1 min read
Aug 3Member-onlyHow to intercept XMLHttpRequest (Xhr) requests in Angular + HttpInterceptorThe Angular provides HttpInterceptor to intercept all network requests made by Http or HttpClient service so that you can add headers like Authorization or AppId tokens. But it doesn’t intercept XmlHttpRequest (XHR) requests made explicitly. In this story, we will see how to intercept XHR requests in Angular. Angular HttpInterceptor: When you…Angular5 min readAngular5 min read
Jul 30Member-onlyAngular Cache —What’s inside and how it improves Angular build timing on local and CI pipelineIf you have an Angular project from version 13 onward, you must have noticed the folder called .angular in your source code. This feature allows Angular CLI to cache the previous builds to reduce the build operations and improves the build time. …Angular6 min readAngular6 min read
Feb 8Member-onlyAngular Interview Questions for Senior/Staff/Architect developer position [Part 2–2023]Let’s continue for Part2. If you have missed Part1 of this story, then do check it out here. Angular Interview Questions for Senior/Staff/Architect developer position [Part 1–2023] In this story, we will see what to ask, expect, and prepare for a Senior/Staff and an Architect Angular…balramchavan.medium.com 1. How do you make sure your Angular application is secure? [Interviewer(s)]: In this question, I would like to see how deep the candidate wants to go in security topic. I would keep an eye on topics like, OWASP guidelines for general web…Angular9 min readAngular9 min read
Feb 7Member-onlyAngular Interview Questions for Senior/Staff/Architect developer position [Part 1–2023]In this story, we will see what to ask, expect, and prepare for a Senior/Staff and an Architect Angular Developer/Engineer position. To keep content readable, this story will be split into different parts. Angular Interview Questions for Senior/Staff/Architect developer position [Part 2–2023] Angular Interview Questions for Senior/Staff/Architect developer position [Part 2–2023] Let’s continue for Part2. If you have missed Part1 of this story, then do check it out here.balramchavan.medium.comAngular7 min readAngular7 min read
Jan 22Member-onlyCreate Angular Library NPM/YARN project with backward version supportHave you ever wanted to publish your own Angular library project on NPM package repository? In this story, we will create an Angular library project ngx-highlight-text to highlight a text element, and publish it on NPM to be publically available. …Angular7 min readAngular7 min read
Jan 15Member-onlyCreate Beautiful QR Codes in Angular — ngx-angular-qrcode — libray packageThe ngx-angular-qrcode library will ease creating beautiful QR Codes in your Angular application. This library supports Angular version 9…Angular2 min readAngular2 min read
Dec 20, 2022Member-onlyOrganize imports using Smart Import Visual Studio Code Extension — TypeScript — Angular, Reactjs, Vuejs, NodejsIf you haven’t read the below story, do check it out. It explains in details about index.ts file. Smarter way to organize “import” statements using “index.ts” file(s) in Angular UPDATE: I have published a Visual Studio Code Extension to automate this process. Check it out.balramchavan.medium.com In any TypeScript based application like Angular, managing imports is one of the tedious jobs. As the application grows, the number of individual TypeScript files grows proportionally. …Angular2 min readAngular2 min read
Dec 15, 2022Member-onlyAngular Dependency Injection — Using “Injector” Service instead of long list of services in Component’s constructorThe Angular framework provides Dependency Injection (DI) out of the box. The easiest way to understand DI is to “Delegate creation of instance task to a global authority and just ask for the instance when you want to use it”. Let’s make it simple, when we create a new service…Angular2 min readAngular2 min read
Dec 12, 2022Member-only5 Rappen CHF rounding (Rounding to nearest 5 cents) + Swiss Franc + Angular PipeHow would you implement conversation logic for below requirements? For example, Values between CHF 0,975 and CHF 1,024 will be rounded to CHF 1,00 Values between CHF 1,025 and CHF 1,074 will be rounded to CHF 1,05 Values between CHF 1,075 and CHF 1,124 will be rounded to CHF 1,10 …Angular2 min readAngular2 min read