π Infinite Scroll Component in Angular
#angular #rxjs #ui_element #infiniteScroll
β Article linkπ Code Link
#angular #rxjs #ui_element #infiniteScroll
β Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
π§ͺ Navigating Angular Apps: RedirectCommand
#angular #router
π© > Angular 18
β Article link
#angular #router
Here are two common scenarios where this technique is particularly useful:
- Redirecting to a 404 Page for Unknown Resources: When attempting to access an unknown resource, itβs typical to redirect to a 404 page. The expected behavior here is akin to skipLocationChange, where users can see the URL of the unknown resource, allowing them to identify and correct any typos. However, with the UrlTree technique, the URL displayed after the redirect shows /404.
- Performing a 301 Redirect to a Resourceβs Canonical URL: In cases where a resourceβs URL can be renamed or aliased, performing a 301 redirect to its canonical URL is beneficial. Ideally, this should behave like replaceUrl, where users see the canonical URL without the option to navigate back to the obsolete or aliased URL. Yet, with the UrlTree technique, users can still navigate back to the obsolete or aliased URL.
π© > Angular 18
β Article link
π2
π How to Implement Deferrable Views in Angular 17
#angular #controlFlow #defer
π© > Angular 17
β Article link
#angular #controlFlow #defer
π© > Angular 17
β Article link
π 7 Time-Saving Websites For CSS Developers
#css #info
- CSS Buttons
- Neumorphism.io
- CSS Strips Generator
- Get Waves
- CSS Grid Generator
- Clippy β CSS Clip-Path Maker
- BEM Cheat Sheet
#css #info
- CSS Buttons
- Neumorphism.io
- CSS Strips Generator
- Get Waves
- CSS Grid Generator
- Clippy β CSS Clip-Path Maker
- BEM Cheat Sheet
π2β€1
This media is not supported in your browser
VIEW IN TELEGRAM
π Angular Signals: untracked function
#angular #signals #untrackted
π© > Angular 17
β Article link
#angular #signals #untrackted
untracked allows reading the value of a signal without making such signal a dependency of our computed signal or effect.
In this example, increasing the counter doesnβt trigger a new computation of info. Only a new name does so
name = signal('Angular');
counter = signal(0);
info = computed(
() =>
`The name is now "${this.name()}" and the
counter value was ${untracked(this.counter)} when
the name changed.`
);π© > Angular 17
β Article link
π4
π JS:
#js #abortSignal #any
β Article link
AbortSignal.any([...])#js #abortSignal #any
The AbortSignal.any() static method enables combining multiple AbortSignal instances into one, facilitating coordinated abort actions. It accepts an iterable of abort signals and returns an AbortSignal that aborts whenever any of the input signals are aborted. The abort reason corresponds to the first signal that triggers the abortion.
β Article link