Very good offical Angular video explaining reasons why the dreaded error might occur and solutions.
Author: Andreas Plahn
Solution Colors – Visual Studio Marketplace
Allows you to associate a color with a solution and display it in various locations within Visual Studio. Inspired by the Peacock extension for VS Code.
Rxjs debugging subscribers
I wanted to see how many listeners there was for a certain subject, and where they reside in the source code.
Here is how in chrome devtools, put a breakpoint before the subjects .next() call. And inspect the subject:
observers array count = number of “listeners”
FunctionLocation = source code reference
(Context: Angular v11, rxjs)
Introduction to Angular Storybook – a tool for component UI development
Introduction to Storybook for Angular Storybook is a tool for UI development. It makes development faster and easier by isolating components. This allows you to work on one component at a time. You can develop entire UIs without needing to start up a complex dev stack, force certain data into your database, or navigate around your application.
Source: Introduction to Storybook
A simpler and smaller Angular starter project
A lot of complaints I heard when starting with Angular are about the sheer amount of files you get even on simple apps. When looking at the default starter template you get from Angular CLI’s
ng new
command, it’s true that it can be a bit overwhelming if you’re not used to it.But it doesn’t have to always be that way. In this article, we’ll explore how we can create a smaller and simpler template that’s also easier to grasp for beginners, following the YAGNI principle.
(Angular version 14)
Source: A simpler and smaller Angular starter with ngLite – DEV Community
GitHub Copilot AI coding assistant is now generally available | InfoWorld
8 Apps to Enable Tabs in File Explorer on Windows 10
8 Apps to Enable Tabs in File Explorer on Windows 10
Source: 8 Apps to Enable Tabs in File Explorer on Windows 10
Use of Enums in Angular 8+ HTML template
in the TS
import { SomeEnum } from 'path-to-file';
public get SomeEnum() {
return SomeEnum;
}
in the HTML use
*ngIf="SomeEnum.someValue === 'abc'"
EDIT: Time goes by and we learn more as a developer, the approach I’m using right now doesn’t use the get
method. Both solutions work, just choose the one you like the most.
in the TS
import { SomeEnum } from 'path-to-file';
export class ClassName {
readonly SomeEnum = SomeEnum;
}
in the HTML use
*ngIf="SomeEnum.someValue === 'abc'"
From: Use of Enums in Angular 8 HTML template for *ngIf – Stack Overflow
Find out which process is locking a file or folder in Windows
You can use the Resource Monitor for this which comes built-in with Windows 7, 8, 10 and 11! Open Resource Monitor, which can be found By searching for Resource Monitor or resmon.exe in the start menu, or As a button on the Performance tab in your Task Manager Go to the CPU tab Use the search field in the Associated Handles section See blue arrow in screen shot below When you’ve found the handle, you can identify the process by looking at the Image and/or PID column. You can then try to close the application as you normally would, or, if that’s not possible, just right-click the handle and kill the process directly from there. Easy peasy!
Source: filesystems – Find out which process is locking a file or folder in Windows – Super User
Top Misconceptions About Dependency Injection in ASP.NET Core
Which can even lead to bugs
Source: Top Misconceptions About Dependency Injection in ASP.NET Core | by Sasha Mathews | Level Up Coding