fa
Feedback

فریب کلاهبرداران را نخورید! تل‌متریو این کانال‌ها را شناسایی و برچسب‌گذاری می‌کند 👉 برای مشاهده برچسب، اشتراک تهیه کنید

Angular 🇺🇦 - practical notes

Angular 🇺🇦 - practical notes

رفتن به کانال در 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!

نمایش بیشتر
1 631
مشترکین
اطلاعاتی وجود ندارد24 ساعت
+17 روز
اطلاعاتی وجود ندارد30 روز
آرشیو پست ها
📄 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