Tags
Accessibility
Alpine.js
Angular
- Listen for specific keys in Angular Templates
- Style Angular Components based on their context
- Angular HttpClient accepts query params as object
- Data binding to aria attributes in Angular
- Angular Outputs can be RxJS Observables
- Inject the unique app id of your Angular app
- Type-safe factory deps in Angular with inject()
array
Bash
chrome
color
console
CSS
DevTools
- Use $0 in the browser console to get the current element
- Find elements in the browser console with $$
- Copy text in the browser console with the copy() function
- Emulate a focused page in DevTools to debug overlay elements
- Observe values in Browser DevTools with Live Expressions
- Empty Cache and Hard Reload in Chrome
Eleventy (11ty)
events
Git
GitHub
grid
HTML
HTTP
jasmine
JavaScript
- Insert multiple HTML elements at once with DocumentFragment
- Style console log outputs in JavaScript
- Edit any website in design mode
- Function parameters can have default values based on other parameters
- setTimeout accepts arguments for the function
- Create an array with the map function of Array.from
- How to use Array.map() with objects
- Keep the separators when splitting a string in JavaScript
- How to get the event target inside Shadow DOM
- Get IANA timezone of user
- Query selectors are applied to the whole document, unless you use :scope
- Get translated display names with Intl.DisplayNames
jest
markdown
Nunjucks
npm
PDF
React
RxJS
SCSS / SASS
Shadow DOM
storybook
svg
terminal
testing
TypeScript
- Separate large numbers in TypeScript with underscore
- Assert that all possible cases in a switch statement are handled
- Define an array with a min length in TypeScript
- TypeScript supports arrays with the rest syntax at the beginning
- Check if a string is a valid enum value in TypeScript
- Create a string type in a specific format in TypeScript
- Extract types in TypeScript
- Exclude certain types in TypeScript
- React function component without children in TypeScript
- Custom hooks should return named tuples and not use "as const"
- Replace any with generics, not with unknown (in many cases)
Visual Studio Code