en
Feedback

Don't get caught by a cheater! Telemetrio finds and tags such channels πŸ‘‰ If you want to see the tag, subscribe

Angular πŸ‡ΊπŸ‡¦ - practical notes

Angular πŸ‡ΊπŸ‡¦ - practical notes

Open in Telegram

Angular - practical notes This group is for posting practical notes for Angular developers. Mostly all posts are for quick implementation https://t.me/angular_practical_notes (Commenting on posts only in ENG and UA langs here). Welcome!

Show more
1 631
Subscribers
No data24 hours
+17 days
No data30 days
Posts Archive
πŸ“„ Internet connection monitoring in Angular #angular #rxjs ⚠️ The example is for presentation purposes only and can be refac
πŸ“„ Internet connection monitoring in Angular #angular #rxjs ⚠️ The example is for presentation purposes only and can be refactored. βœ… Article link

πŸ“„ Async generation and iteration #js #generators Async generators was a powerful one from ES9.
+3
πŸ“„ Async generation and iteration #js #generators
Async generators was a powerful one from ES9.

πŸ€“ Cheat Sheet for REST API Design #info #restApi #guide REST Principles Resource-based: REST APIs are designed around resour
+7
πŸ€“ Cheat Sheet for REST API Design #info #restApi #guide
REST Principles Resource-based: REST APIs are designed around resources, which are identified by unique URIs (Uniform Resource Identifiers). Stateless: Each request from the client to the server must contain all the necessary information for the server to understand and process the request. The server should not rely on storing any client context between requests. Cacheable: Responses from the server should be labeled as cacheable or non-cacheable, allowing clients to cache responses and improve performance. Uniform Interface: REST APIs should follow a consistent interface, using standard HTTP methods (GET, POST, PUT, DELETE) to perform operations on resources. Layered System: REST APIs can be composed of multiple layers, allowing for load balancing, caching, and proxy servers.
βœ… Article link

πŸ“„ Generate pdf in Angular #angular #pdf ⚠️ The example is for presentation purposes only and can be refactored. βœ… Article li
πŸ“„ Generate pdf in Angular #angular #pdf ⚠️ The example is for presentation purposes only and can be refactored. βœ… Article link 🎁 Code link

πŸ“„ Adding Google Analytics to Angular #angular #guide #google #google_analytics βœ… Article link
+4
πŸ“„ Adding Google Analytics to Angular #angular #guide #google #google_analytics βœ… Article link

πŸ“„ Storing environment variables in Angular #angular #guide #webpack #dotenv βœ… Article link
+6
πŸ“„ Storing environment variables in Angular #angular #guide #webpack #dotenv βœ… Article link

Hello, friends! As you can see, I'm a Ukrainian software engineer who tries to do volunteer fundraisers to support the Armed
Hello, friends! As you can see, I'm a Ukrainian software engineer who tries to do volunteer fundraisers to support the Armed Forces of Ukraine. Sometimes it takes a lot of time and I am not able to maintain this channel for you. Please help me close these fundraisers because without the Ukrainian army there will be nothing Ukrainian. Thank you very much! πŸ’΅ FOR Ukraine: https://send.monobank.ua/jar/5TvPibajtR 5375 4114 1222 8582 🌎 FOR ALL DONATS: πŸ’΅ SWIFT code: UNJSUAUKXXX πŸ’΅ PayPal: luckystudydanit@gmail.com My profile with reports after closing fundraiser : https://www.facebook.com/volunt2erua/ also all reports in our πŸš€ channel: https://t.me/toxicc_squad

πŸ“„ Angular Design Patterns: Strategy Pattern #angular #patterns #strategy βœ… Article link
+3
πŸ“„ Angular Design Patterns: Strategy Pattern #angular #patterns #strategy βœ… Article link

πŸ€“ Implementing Two-Way Data Binding #angular #signals #model 🚩 > Angular 17 βœ… Article link
+1
πŸ€“ Implementing Two-Way Data Binding #angular #signals #model 🚩 > Angular 17 βœ… Article link

πŸ€“ Replacing Static Inputs with the Host Attribute Token #angular #decorator #Attribute #HostAttributeToken 🚩 > Angular 17 βœ…
+1
πŸ€“ Replacing Static Inputs with the Host Attribute Token #angular #decorator #Attribute #HostAttributeToken 🚩 > Angular 17 βœ… Article link

πŸ€“ Use cases of closures in JavaScript #js #closure βœ… Article link
+9
πŸ€“ Use cases of closures in JavaScript #js #closure βœ… Article link

πŸ“„ JS: AbortSignal.any([...]) #js #abortSignal #any The AbortSignal.any() static method enables combining multiple AbortSigna
+1
πŸ“„ JS: 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

πŸ“„ Angular Signals: untracked function #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

πŸ“„ How to Implement Deferrable Views in Angular 17 #angular #controlFlow #defer 🚩 > Angular 17 βœ… Article link
+4
πŸ“„ How to Implement Deferrable Views in Angular 17 #angular #controlFlow #defer 🚩 > Angular 17 βœ… Article link

πŸ§ͺ Navigating Angular Apps: RedirectCommand #angular #router Here are two common scenarios where this technique is particular
πŸ§ͺ Navigating Angular Apps: RedirectCommand #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

πŸ“„ Infinite Scroll Component in Angular #angular #rxjs #ui_element #infiniteScroll βœ… Article link 🎁 Code Link
+2
πŸ“„ Infinite Scroll Component in Angular #angular #rxjs #ui_element #infiniteScroll βœ… Article link 🎁 Code Link

πŸ“„ Web Service Workers in Angular #angular #guide #serviceWorker What is a Service Worker? In Angular, a service worker is a
+9
πŸ“„ Web Service Workers in Angular #angular #guide #serviceWorker
What is a Service Worker? In Angular, a service worker is a script that runs in the background of a web application, separate from the main web page. It is a critical component for building Progressive Web Apps (PWAs) and enabling features like offline functionality, push notifications, and caching.
βœ… Article link

πŸ€“ Clean Code JavaScript Tips for Efficient Programming #js βœ… Article link
+7
πŸ€“ Clean Code JavaScript Tips for Efficient Programming #js βœ… Article link

πŸ“„ 2/2 One-Liners Every Dev Needs to Know #css 11. Automatic PDF Indicator
Automatically appends β€œ(PDF)” after links that point to PDF files, making it clear to users what type of file they’re about to download.
a[href$=".pdf"][download]::after { content: " (PDF)" }
12. Counting with CSS
The below piece of code creates a custom counter for list items, transforming them into a uniquely styled numbered list. This snippet uses the CSS counters to increment the list item number and display it before the item content:
.list { counter-reset: list-counter }
.item { counter-increment: list-counter }
.item::before { content: counter(list-counter) ". " }
13. Grayscale Image Hover
This piece of CSS applies a grayscale filter to images on hover, creating an elegant visual effect that reverts to full colour when the mouse is moved away.
img:hover { filter: grayscale(100%) }
14. Perfect Circles
With this one-liner, you can easily transform any element into a perfect circle.
.circle { clip-path: circle(50%) }
15. Blend Backgrounds
Mix the element’s background image with its background colour using the multiply blend mode, creating a rich, layered visual effect.
.blend-background { background-blend-mode: multiply }
16. Gradient Text -webkit-background-clip: text leverages the power of CSS gradients and clips it to the text itself, making the text transparent and letting the gradient show through as its color.
.gradient-text {
  background: linear-gradient(to top, red 0%, blue 100%);
  color: transparent;
  -webkit-background-clip: text;
}
17. First Line Emphasis
The ::first-line pseudo-element makes the first line of your paragraph stand out by making it bold and changing its colour.
p::first-line {
  font-weight: bold;
  color: #333;
}
18. Dynamic Sibling Influence
This CSS one-liner changes the style of a target element when you hover over its sibling.
.sibling:hover ~ .target { color: #007bff }
.sibling:hover + .target { color: #007bff }
19. Empty Element
This CSS trick automatically hides any element that has no content.
.element:empty { display: none }
20. Responsive Styling based on Orientation
It’s perfect for ensuring your design looks great in both portrait and landscape modes, especially on mobile devices where users might frequently change orientation.
@media (orientation: landscape) {
  body {
    background-color: #333
  }
}
βœ… Article link